1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Fix issue with import format selector (#16358)

Addresses an issue when selecting an import format when the use-chromium-importer feature flag is enabled

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2025-09-09 17:05:05 +02:00
committed by GitHub
parent 45efd3e5ab
commit 678c5cbcca

View File

@@ -259,7 +259,7 @@ export class ImportComponent implements OnInit, OnDestroy, AfterViewInit {
// when an importer is defined, the loader needs to be set to a value from
// its list.
const loader = importer.loaders.includes(Loader.chromium)
const loader = importer.loaders?.includes(Loader.chromium)
? Loader.chromium
: importer.loaders?.[0];
this.formGroup.controls.chromiumLoader.setValue(loader ?? Loader.file);