From 453958932620b18578aafdaa414bbf8c04bba89b Mon Sep 17 00:00:00 2001 From: John Harrington <84741727+harr1424@users.noreply.github.com> Date: Wed, 19 Nov 2025 15:23:52 -0700 Subject: [PATCH] add import-chrome-component.ts to working tree --- .../components/chrome/import-chrome.component.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libs/importer/src/components/chrome/import-chrome.component.ts b/libs/importer/src/components/chrome/import-chrome.component.ts index 5467b08ee61..389ce23f837 100644 --- a/libs/importer/src/components/chrome/import-chrome.component.ts +++ b/libs/importer/src/components/chrome/import-chrome.component.ts @@ -112,8 +112,17 @@ export class ImportChromeComponent implements OnInit, OnDestroy { private i18nService: I18nService, ) { effect(async () => { - this.profileList = await this.onLoadProfilesFromBrowser(this.getBrowserName(this.format())); - // FIXME: Add error handling and display when profiles could not be loaded/retrieved + // Callback is set via @Input after constructor, so check it exists + if (this.onLoadProfilesFromBrowser) { + try { + this.profileList = await this.onLoadProfilesFromBrowser( + this.getBrowserName(this.format()), + ); + } catch (error) { + this.logService.error("Error loading profiles from browser:", error); + // FIXME: Add error handling and display when profiles could not be loaded/retrieved + } + } }); }