From 6eea76f85451e7331e8151388102f1808d189eae Mon Sep 17 00:00:00 2001 From: Andrii Shvaika Date: Thu, 9 Apr 2026 16:49:50 +0300 Subject: [PATCH] fix(iot-hub): fix review mode initialization order in device install dialog The review mode check ran after the single-connectivity auto-start, so the wizard was already built with empty state before review mode could restore form values and entity outputs. Fix: move connectivity selection logic after the review mode check. Review mode sets its own connectivity from stored state; normal mode falls through to the existing single/multi connectivity logic. --- .../device-install-dialog.component.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts index 66b8a82b01..9ee8e11ef9 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -145,13 +145,6 @@ export class TbDeviceInstallDialogComponent extends DialogComponent this.packageInfo.installSteps[ct]?.length > 0 ); - if (this.availableConnectivityTypes.length === 1) { - this.selectedConnectivity = this.availableConnectivityTypes[0]; - this.showConnectivitySelector = false; - this.startWizard(); - } else { - this.showConnectivitySelector = true; - } } catch (e) { console.error('Failed to parse device package ZIP', e); } @@ -169,13 +162,19 @@ export class TbDeviceInstallDialogComponent extends DialogComponent