mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-24 02:53:43 +03:00
lint
This commit is contained in:
parent
00b43e88dc
commit
8a514fff17
@ -95,6 +95,9 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
{ size: 'lg' },
|
{ size: 'lg' },
|
||||||
)
|
)
|
||||||
const provider = this.profilesService.providerForProfile(profile)
|
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.profile = Object.assign({}, profile)
|
||||||
modal.componentInstance.profileProvider = provider
|
modal.componentInstance.profileProvider = provider
|
||||||
const result = await modal.result
|
const result = await modal.result
|
||||||
|
Loading…
Reference in New Issue
Block a user