From f8415b38d4c303d55b37913707e7fc8f70056240 Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Tue, 11 Jun 2024 14:30:38 -0400 Subject: [PATCH] fix undefined check --- .../ui-core/src/runs/HourlyDataCache/HourlyDataCache.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/HourlyDataCache/HourlyDataCache.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/HourlyDataCache/HourlyDataCache.tsx index 03b0ae5179544..02266455fa568 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/HourlyDataCache/HourlyDataCache.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/HourlyDataCache/HourlyDataCache.tsx @@ -65,7 +65,7 @@ export class HourlyDataCache { private saveTimeout?: ReturnType; private registeredUnload: boolean = false; private async saveCacheToIndexedDB() { - if (typeof jest !== undefined) { + if (typeof jest !== 'undefined') { if (!this.indexedDBCache) { return; }