mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 14:34:09 +00:00
Fixed a TS error
This commit is contained in:
@@ -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) || {
|
||||
|
||||
Reference in New Issue
Block a user