Skip to content

Commit

Permalink
add view to deps array
Browse files Browse the repository at this point in the history
  • Loading branch information
roo2 committed May 2, 2024
1 parent ad336ac commit ed2d50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Search = memo( function Search( { label, view, onChangeView } ) {
search: debouncedSearch,
} );
}
}, [ debouncedSearch ] );
}, [ debouncedSearch, view ] );
const searchLabel = label || __( 'Search' );
return (
<SearchControl
Expand Down

0 comments on commit ed2d50a

Please sign in to comment.