From ed2d50a15f14185d1add138001096fe08e15bec2 Mon Sep 17 00:00:00 2001 From: Eru Penkman Date: Thu, 2 May 2024 16:35:21 +1000 Subject: [PATCH] add view to deps array --- packages/dataviews/src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataviews/src/search.js b/packages/dataviews/src/search.js index 217409064f6d84..d339a9dedf3857 100644 --- a/packages/dataviews/src/search.js +++ b/packages/dataviews/src/search.js @@ -25,7 +25,7 @@ const Search = memo( function Search( { label, view, onChangeView } ) { search: debouncedSearch, } ); } - }, [ debouncedSearch ] ); + }, [ debouncedSearch, view ] ); const searchLabel = label || __( 'Search' ); return (