Skip to content

Commit

Permalink
FlatTermSelector: Fix the 'useSelect' missing dependency (#50872)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored May 23, 2023
1 parent 6027a70 commit 074443a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function FlatTermSelector( { slug } ) {
: EMPTY_ARRAY,
};
},
[ search ]
[ search, slug ]
);

// Update terms state only after the selectors are resolved.
Expand Down

0 comments on commit 074443a

Please sign in to comment.