BugFix: Link based Apps installation - Opens 2 tabs instead of 1 (#5859)

Co-authored-by: Bailey Pumfleet <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-12-05 14:13:01 +01:00
1 parent c37cddd0b7
commit 0930cf50b6
4 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ export default function AppCard({ app, credentials, searchText }: AppCardProps)
onSuccess: (data) => {
// Refresh SSR page content without actual reload
router.replace(router.asPath);
if (data.setupPending) return;
if (data?.setupPending) return;
showToast(t("app_successfully_installed"), "success");
},
onError: (error) => {