1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-23 10:32:29 +03:00
This commit is contained in:
Eugene Pankov 2021-09-09 22:17:15 +02:00
parent 00b43e88dc
commit 8a514fff17
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

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