refactor(editor): Refine INodeUpdatePropertiesInformation type and remove unnecessary type assertions (#17783)

This commit is contained in:
Suguru Inoue
2025-07-29 12:39:03 +02:00
committed by GitHub
parent 056302ebe5
commit 04c1121075
7 changed files with 10 additions and 30 deletions

View File

@@ -24,13 +24,7 @@ import {
} from 'n8n-workflow';
import { computed, defineAsyncComponent, onBeforeUnmount, onMounted, ref, toRef, watch } from 'vue';
import type {
INodeUi,
INodeUpdatePropertiesInformation,
IRunDataDisplayMode,
ITab,
NodePanelType,
} from '@/Interface';
import type { INodeUi, IRunDataDisplayMode, ITab, NodePanelType } from '@/Interface';
import {
CORE_NODES_CATEGORY,
@@ -1311,8 +1305,8 @@ function enableNode() {
name: node.value.name,
properties: {
disabled: !node.value.disabled,
} as IDataObject,
} as INodeUpdatePropertiesInformation;
},
};
workflowsStore.updateNodeProperties(updateInformation);
}