diff --git a/tabby-settings/src/components/profilesSettingsTab.component.ts b/tabby-settings/src/components/profilesSettingsTab.component.ts index 3b04984a..3eb3f755 100644 --- a/tabby-settings/src/components/profilesSettingsTab.component.ts +++ b/tabby-settings/src/components/profilesSettingsTab.component.ts @@ -95,6 +95,9 @@ export class ProfilesSettingsTabComponent extends BaseComponent { { size: 'lg' }, ) const provider = this.profilesService.providerForProfile(profile) + if (!provider) { + throw new Error('Cannot edit a profile without a provider') + } modal.componentInstance.profile = Object.assign({}, profile) modal.componentInstance.profileProvider = provider const result = await modal.result