Skip to content

Commit

Permalink
fix: Fix a minor bug in Store
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Jan 16, 2025
1 parent b6a5605 commit 4b813b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/Store/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ const Store: React.FC = () => {
retry: false,
});

const { data: existingPlugins } = useQuery({
const { data: existingPlugins, refetch: refetchExistingPlugins } = useQuery({
queryKey: ["existingStorePlugins"],
queryFn: fetchExistingPlugins,
});
Expand Down Expand Up @@ -398,10 +398,7 @@ const Store: React.FC = () => {
// If there is a plugin pending installation, proceed to install
handleSave();
}

if (bulkInstallMutation.isIdle) {
handleInstallAll();
}
refetchExistingPlugins();
};

const TitleComponent = useMemo(
Expand Down

0 comments on commit 4b813b0

Please sign in to comment.