From f8f7e00cce4a934cf333d38d9d625eba915b6d14 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 11 Jun 2026 12:35:31 +0300 Subject: [PATCH] fix(iot-hub): resolve DEVICE installed-item url to its dashboard Add a DEVICE arm to getInstalledItemUrl so device-installs link to their generated dashboard (descriptor.dashboardId / EntityType.DASHBOARD), matching the existing SOLUTION_TEMPLATE handling instead of falling through to no URL. --- .../shared/models/iot-hub/iot-hub-installed-item.models.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts index 3bdaa87e66..c568c96a71 100644 --- a/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts +++ b/ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts @@ -108,6 +108,10 @@ export const getInstalledItemUrl = (descriptor?: IotHubInstalledItemDescriptor): let entityType: EntityType | null = null; let query: string | null = null; switch (descriptor.type) { + case 'DEVICE': + entityId = descriptor.dashboardId?.id; + entityType = EntityType.DASHBOARD; + break; case 'WIDGET': entityId = descriptor.widgetTypeId?.id; entityType = EntityType.WIDGET_TYPE;