From edb2b04d873809f6c20bf3a7cf71f4cb0d6b14fc Mon Sep 17 00:00:00 2001 From: Andrii Shvaika Date: Wed, 1 Apr 2026 16:43:58 +0300 Subject: [PATCH] fix(iot-hub): fix build errors in device install dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix tb-markdown input: [markdownText] → [data] in done view - Fix JSZip entry type annotation for strict TS compilation --- .../device-install-dialog.component.html | 4 ++-- .../device-install-dialog/device-install-dialog.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html b/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html index 9971b4e456..7db9a60aa3 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.html @@ -167,8 +167,8 @@ @case ('done') {
@if (currentMarkdown) { - + } @else {

{{ 'iot-hub.install-success-desc' | translate:{ name: packageInfo?.name } }}

diff --git a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts index 5df5ba1577..286a861e35 100644 --- a/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/iot-hub/device-install-dialog/device-install-dialog.component.ts @@ -89,7 +89,7 @@ export class TbDeviceInstallDialogComponent implements OnInit { try { const JSZip = (await import('jszip')).default; const zip = await JSZip.loadAsync(this.data.zipData); - for (const [path, entry] of Object.entries(zip.files)) { + for (const [path, entry] of Object.entries(zip.files) as [string, any][]) { if (!entry.dir) { const content = await entry.async('string'); this.zipFiles.set(path, content);