Fixed a TS error

This commit is contained in:
Vladyslav Matsiiako
2023-02-13 19:44:18 -08:00
parent ddf630c269
commit 77cb20f5c7
2 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -561,8 +561,7 @@ export default function Dashboard() {
const handleOnEnvironmentChange = (envName: string) => {
if(hasUnsavedChanges) {
// eslint-disable-next-line no-restricted-globals
if (!confirm(leaveConfirmDefaultMessage)) return;
if (!window.confirm(leaveConfirmDefaultMessage)) return;
}
const selectedWorkspaceEnv = workspaceEnvs.find(({ name }: { name: string }) => envName === name) || {