fix: var objects sorts change

This commit is contained in:
Joel
2024-03-20 21:47:29 +08:00
parent 8fc576870d
commit 66fd60bc6f
5 changed files with 66 additions and 22 deletions

View File

@ -35,8 +35,10 @@ const Panel: FC<NodePanelProps<CodeNodeType>> = ({
const {
readOnly,
inputs,
outputKeyOrders,
handleVarListChange,
handleAddVariable,
handleRemoveVariable,
handleCodeChange,
handleCodeLanguageChange,
handleVarsChange,
@ -94,10 +96,13 @@ const Panel: FC<NodePanelProps<CodeNodeType>> = ({
<AddButton onClick={handleAddOutputVariable} />
}
>
<OutputVarList
readonly={readOnly}
outputs={inputs.outputs}
outputKeyOrders={outputKeyOrders}
onChange={handleVarsChange}
onRemove={handleRemoveVariable}
/>
</Field>
</div>