Skip to content

Commit ee204f2

Browse files
committed
fix: group registry effect
1 parent b21b891 commit ee204f2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

renderer/src/features/registry-servers/components/multi-server-install-wizard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ export function MultiServerInstallWizard({
4747

4848
// Create group when dialog opens and group hasn't been created yet
4949
useEffect(() => {
50-
if (isOpen && !wizardState.isGroupCreated && group?.name) {
50+
if (
51+
isOpen &&
52+
!wizardState.isGroupCreated &&
53+
!createGroupMutation.isPending &&
54+
group?.name
55+
) {
5156
createGroupMutation
5257
.mutateAsync({
5358
body: {

renderer/src/routes/__tests__/registry-group_.$name.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ describe('Registry Group Detail Route', () => {
401401
name: /configure first-server/i,
402402
})
403403
if (h) {
404-
await waitForElementToBeRemoved(h, { timeout: 10000 })
404+
await waitForElementToBeRemoved(h)
405405
}
406406
}
407407
const secondServerHeading = await screen.findByRole('heading', {
@@ -543,7 +543,7 @@ describe('Registry Group Detail Route', () => {
543543
name: /configure first-server/i,
544544
})
545545
if (h2) {
546-
await waitForElementToBeRemoved(h2, { timeout: 10000 })
546+
await waitForElementToBeRemoved(h2)
547547
}
548548
}
549549
const secondServerHeading2 = await screen.findByRole('heading', {
@@ -562,7 +562,7 @@ describe('Registry Group Detail Route', () => {
562562
// The wizard closes the dialog before emitting readiness toasts
563563
const dialog = screen.queryByRole('dialog')
564564
if (dialog) {
565-
await waitForElementToBeRemoved(dialog, { timeout: 10000 })
565+
await waitForElementToBeRemoved(dialog)
566566
}
567567

568568
await waitFor(() => {

0 commit comments

Comments
 (0)