diff --git a/packages/playground/src/App.vue b/packages/playground/src/App.vue index 5b8d75701d..8281da9fcb 100644 --- a/packages/playground/src/App.vue +++ b/packages/playground/src/App.vue @@ -336,12 +336,12 @@ async function setTimeouts() { } const client = gridStore.client as GridClient; - const clientOptions = client.clientOptions; + const localStorageDeploymentTimeout = localStorage.getItem(LocalStorageSettingsKey.TIMEOUT_DEPLOYMENT_KEY); - const deploymentTimeoutMinutes = clientOptions.deploymentTimeoutMinutes; - if (client && clientOptions && deploymentTimeoutMinutes) { - if (!localStorageDeploymentTimeout) { + if (client && client.clientOptions) { + const deploymentTimeoutMinutes = client.clientOptions.deploymentTimeoutMinutes; + if (!localStorageDeploymentTimeout && deploymentTimeoutMinutes) { localStorage.setItem(LocalStorageSettingsKey.TIMEOUT_DEPLOYMENT_KEY, `${+deploymentTimeoutMinutes * 60}`); } else { client.clientOptions.deploymentTimeoutMinutes = +localStorageDeploymentTimeout! / 60; @@ -349,7 +349,6 @@ async function setTimeouts() { } } } - // eslint-disable-next-line no-undef const version = process.env.VERSION as any;