fix: variables check (#2849)

* fix: variables check

* remove log
This commit is contained in:
Archer
2024-10-01 11:11:19 +08:00
committed by GitHub
parent d4b99ddcab
commit fc6f28f26e
2 changed files with 8 additions and 8 deletions

View File

@@ -298,7 +298,8 @@ export const formatEditorVariablePickerIcon = (
};
export const isReferenceValue = (value: any, nodeIds: string[]): boolean => {
return Array.isArray(value) && value.length === 2 && nodeIds.includes(value[0]);
const validIdList = [VARIABLE_NODE_ID, ...nodeIds];
return Array.isArray(value) && value.length === 2 && validIdList.includes(value[0]);
};
export const getElseIFLabel = (i: number) => {