Skip to content

Commit 074443a

Browse files
authored
FlatTermSelector: Fix the 'useSelect' missing dependency (#50872)
1 parent 6027a70 commit 074443a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/editor/src/components/post-taxonomies/flat-term-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function FlatTermSelector( { slug } ) {
142142
: EMPTY_ARRAY,
143143
};
144144
},
145-
[ search ]
145+
[ search, slug ]
146146
);
147147

148148
// Update terms state only after the selectors are resolved.

0 commit comments

Comments
 (0)