Skip to content

Commit

Permalink
update network node to use nodeprops form
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed Jan 25, 2024
1 parent 3ee5a0e commit d7f143c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/workboard/network-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export function NetworkNode(nodeProps: NodeProps<NodeData>) {
api.remoteProcess.submitNetwork.useMutation();
const { onUpdateNode, getSourceData } = useStoreActions();

const [formData, setFormData] = useState<FormType | undefined>(undefined);
const [formData, setFormData] = useState<FormType | undefined>(
nodeProps.data.form as FormType,
);

type NetworkFormSubmitType = 'create' | 'retry' | 'finetune';

Expand Down Expand Up @@ -149,6 +151,7 @@ export function NetworkNode(nodeProps: NodeProps<NodeData>) {
message: `Job ${jobId} submitted in ${dayjs().format(
'YYYY-MM-DD HH:mm:ss',
)}`,
form: formData,
},
});
updateNodeInternals(nodeProps.id);
Expand Down

0 comments on commit d7f143c

Please sign in to comment.