Skip to content

Commit

Permalink
revert previous states set on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Dec 6, 2024
1 parent e70ad36 commit 6c23c7f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
getEnvironmentType,

Check failure on line 28 in web-admin/src/features/projects/environment-variables/EditDialog.svelte

View workflow job for this annotation

GitHub Actions / build

'getEnvironmentType' is defined but never used
isDuplicateKey,
} from "./utils";
import { onMount } from "svelte";
export let open = false;
export let id: string;
Expand All @@ -40,8 +41,8 @@
isDevelopment: boolean;
isProduction: boolean;
};
let isDevelopment: boolean;
let isProduction: boolean;
let isDevelopment = false;
let isProduction = false;
let isKeyAlreadyExists = false;
let inputErrors: { [key: number]: boolean } = {};
Expand Down Expand Up @@ -248,6 +249,10 @@
};
}
onMount(() => {
handleDialogOpen();
});
$: if (open) {
handleDialogOpen();
}
Expand Down

0 comments on commit 6c23c7f

Please sign in to comment.