From 8a514fff17cbcf5e8ba64832a32088b9337eb96b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 9 Sep 2021 22:17:15 +0200 Subject: [PATCH] lint --- tabby-settings/src/components/profilesSettingsTab.component.ts | 3 +++ 1 file changed, 3 insertions(+) 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