diff --git a/.github/workflows/typescript_test.yml b/.github/workflows/typescript_test.yml index daa9016f4..f31320d86 100644 --- a/.github/workflows/typescript_test.yml +++ b/.github/workflows/typescript_test.yml @@ -12,7 +12,7 @@ on: description: "Test suites to run (JSON array)" required: false type: string - default: '[]' + default: "[]" release: description: "Whether this is a release build" required: false @@ -153,7 +153,8 @@ jobs: echo "Final test suites to run: $SUITES" echo "Test grep pattern: $TEST_GREP" - echo "matrix=$SUITES" >> $GITHUB_OUTPUT + # Ensure proper JSON formatting for matrix output + echo "matrix=$(echo $SUITES | jq -c .)" >> $GITHUB_OUTPUT echo "test_grep=$TEST_GREP" >> $GITHUB_OUTPUT setup-and-test: diff --git a/src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx b/src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx index de34135e7..9ecb1dc53 100644 --- a/src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx +++ b/src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx @@ -37,7 +37,6 @@ const useHandleOnNewValue = ({ const updateNodeInternals = useUpdateNodeInternals(); const setErrorData = useAlertStore((state) => state.setErrorData); - const postTemplateValue = usePostTemplateValue({ parameterId: name, nodeId: nodeId, @@ -72,14 +71,21 @@ const useHandleOnNewValue = ({ const setNodeClass = (newNodeClass: APIClassType) => { options?.setNodeClass && options.setNodeClass(newNodeClass); - setNode(nodeId, (oldNode) => { - const newData = cloneDeep(oldNode.data); - newData.node = newNodeClass; - return { - ...oldNode, - data: newData, - }; - }); + setNode( + nodeId, + (oldNode) => { + const newData = cloneDeep(oldNode.data); + newData.node = newNodeClass; + return { + ...oldNode, + data: newData, + }; + }, + true, + () => { + updateNodeInternals(nodeId); + }, + ); }; if (shouldUpdate && changes.value !== undefined) {