feat(editor): Remove prevent-ndv-auto-open feature flag (#5114)

feature(editor): Remove `prevent-ndv-auto-open` feature flag
This commit is contained in:
OlegIvaniv 2023-01-10 09:39:37 +01:00 committed by GitHub
parent 0e955760a1
commit ab4785ab31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1921,10 +1921,7 @@ export default mixins(
// current node. But only if it's added manually by the user (not by undo/redo mechanism)
if (trackHistory) {
this.deselectAllNodes();
const preventDetailOpen =
window.posthog?.getFeatureFlag &&
window.posthog?.getFeatureFlag('prevent-ndv-auto-open') === 'prevent';
if (showDetail && !preventDetailOpen) {
if (showDetail) {
setTimeout(() => {
this.nodeSelectedByName(newNodeData.name, nodeTypeName !== STICKY_NODE_TYPE);
});