From 344ef3a131d08ea832b5857eb5bdfa414eafea1c Mon Sep 17 00:00:00 2001 From: jmbuss Date: Fri, 4 Oct 2024 10:02:43 -0600 Subject: [PATCH] fix(alarms): fix for configuring alarm by asset model --- packages/dashboard/src/components/dashboard/queryContext.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/src/components/dashboard/queryContext.ts b/packages/dashboard/src/components/dashboard/queryContext.ts index d249941d5..30a874e44 100644 --- a/packages/dashboard/src/components/dashboard/queryContext.ts +++ b/packages/dashboard/src/components/dashboard/queryContext.ts @@ -60,7 +60,8 @@ export const useQueries = ({ (assets.length === 0 && properties.length === 0 && assetModels.length === 0 && - alarms.length === 0) + alarms.length === 0 && + alarmModels.length === 0) ) { return []; }