Skip to content

Commit

Permalink
fix: do not update when function has no reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazawazi committed Dec 23, 2023
1 parent 3576712 commit c9dbd69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/FunixFunction/InputPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ const InputPanel = (props: {
}, [backConsensus]);

const handleChange = ({ formData }: Record<string, any>) => {
console.log("Data changed: ", formData);
// console.log("Data changed: ", formData);
setForm(formData);

if (!props.preview.reactive) {
return;
}

_.debounce(() => {
fetch(new URL(`/update/${props.preview.id}`, props.backend), {
method: "POST",
Expand Down

0 comments on commit c9dbd69

Please sign in to comment.