From ff6f46368bf4bbc2b7e3a46b23a542aa012ab248 Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Wed, 25 Oct 2023 13:26:41 -0400 Subject: [PATCH] math.min --- .../packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx index 89cfabafc1d40..7636f019305cc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx @@ -358,7 +358,7 @@ async function _batchedQueryAssets( }; }); - setTimeout(doNextFetch, 5000); + setTimeout(doNextFetch, Math.min(pollRate, 5000)); } }