Commit c129874d by Archer Committed by GitHub

fix: dataset params default error (#2210)

parent cc6fa420
...@@ -55,7 +55,7 @@ const SelectDatasetParam = ({ inputs = [], nodeId }: RenderInputProps) => { ...@@ -55,7 +55,7 @@ const SelectDatasetParam = ({ inputs = [], nodeId }: RenderInputProps) => {
setData((state) => ({ setData((state) => ({
...state, ...state,
// @ts-ignore // @ts-ignore
[input.key]: input.value || state[input.key] [input.key]: input.value ?? state[input.key]
})); }));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment