Skip to content

Commit 6f105ed

Browse files
committed
fix: filter dependency in case of persistent filters
1 parent 201ab81 commit 6f105ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Shared/Components/Plugin/PluginListContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const PluginListContainer = ({
7979

8080
const [isLoadingPluginData, pluginData, pluginDataError, reloadPluginData] = useAsync(
8181
getPluginStoreDataWrapper,
82-
persistFilters ? [pluginList] : [searchKey, appId, selectedTags],
82+
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
83+
[searchKey, appId, selectedTags],
8384
persistFilters ? !pluginList.length : true,
8485
)
8586

0 commit comments

Comments
 (0)