gitscope
← marzneshin / Diff · f9ed408 → f9ed408
Changes f9ed408..f9ed408
Patch commit
diff --git a/dashboard/src/features/hosts/dialogs/mutation/index.tsx b/dashboard/src/features/hosts/dialogs/mutation/index.tsx
index 35ada51..d17b295 100644
--- a/dashboard/src/features/hosts/dialogs/mutation/index.tsx
+++ b/dashboard/src/features/hosts/dialogs/mutation/index.tsx
@@ -75,7 +75,7 @@ export const HostsMutationDialog: FC<MutationDialogProps> = ({
useEffect(() => {
if (entity) form.reset(entity);
else form.reset(getDefaultValues());
- }, [entity, form]);
+ }, [entity, form, open]);
return (
<Dialog open={open} onOpenChange={onOpenChange} defaultOpen={true}>