mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
fix: update dependency in CreateTransientRequest to include collectionUid in useMemo dependencies (#7057)
This commit is contained in:
committed by
Bijin A B
parent
777669ba65
commit
977a48dfa7
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user