fix(selector): avoid error Uncaught (in promise) on modal dismiss (fix Eugeny/tabby#8065)

This commit is contained in:
Clem Fern
2023-08-15 19:53:52 +02:00
parent d21282501f
commit a9c63b5305
5 changed files with 10 additions and 6 deletions

View File

@@ -65,7 +65,10 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
name: p.group ? `${this.profilesService.resolveProfileGroupName(p.group)} / ${p.name}` : p.name,
result: p,
})),
)
).catch(() => undefined)
if (!base) {
return
}
}
const profile: PartialProfile<Profile> = deepClone(base)
delete profile.id