This commit is contained in:
Eugene Pankov
2021-09-09 22:17:15 +02:00
parent 00b43e88dc
commit 8a514fff17

View File

@@ -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