fix: update dependency in CreateTransientRequest to include collectionUid in useMemo dependencies (#7057)

This commit is contained in:
Chirag Chandrashekhar
2026-02-06 13:02:31 +05:30
committed by Bijin A B
parent 777669ba65
commit 977a48dfa7

View File

@@ -58,7 +58,7 @@ const CreateTransientRequest = ({ collectionUid }) => {
const collection = useMemo(() => {
return collections?.find((c) => c.uid === collectionUid);
}, [collections]);
}, [collections, collectionUid]);
const collectionPresets = useMemo(() => {
return get(collection, collection?.draft?.brunoConfig ? 'draft.brunoConfig.presets' : 'brunoConfig.presets', {