Skip to content

Commit

Permalink
fix: reset resolveFields lastFields param when changing component
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 16, 2025
1 parent 62d9972 commit 18f0d46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/components/Puck/components/Fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ const useResolvedFields = (): [FieldsType, boolean] => {

setFieldsLoading(false);
});
} else {
setResolvedFields(defaultFields);

return;
}
}

setResolvedFields(defaultFields);
}, [
data,
defaultFields,
Expand Down

0 comments on commit 18f0d46

Please sign in to comment.