Skip to content

Commit

Permalink
fix: resolve fields when switching between items of same type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 14, 2024
1 parent bc81d9c commit a3518ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/Puck/components/Fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const useResolvedFields = (): [FieldsType, boolean] => {

setFieldsLoading(false);
});
}, [data, defaultFields]);
}, [data, defaultFields, state.ui.itemSelector]);

return [resolvedFields, fieldsLoading];
};
Expand Down

0 comments on commit a3518ca

Please sign in to comment.