Skip to content

Commit 4b813b0

Browse files
committed
fix: Fix a minor bug in Store
1 parent b6a5605 commit 4b813b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/Store/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ const Store: React.FC = () => {
357357
retry: false,
358358
});
359359

360-
const { data: existingPlugins } = useQuery({
360+
const { data: existingPlugins, refetch: refetchExistingPlugins } = useQuery({
361361
queryKey: ["existingStorePlugins"],
362362
queryFn: fetchExistingPlugins,
363363
});
@@ -398,10 +398,7 @@ const Store: React.FC = () => {
398398
// If there is a plugin pending installation, proceed to install
399399
handleSave();
400400
}
401-
402-
if (bulkInstallMutation.isIdle) {
403-
handleInstallAll();
404-
}
401+
refetchExistingPlugins();
405402
};
406403

407404
const TitleComponent = useMemo(

0 commit comments

Comments
 (0)