mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 18:38:01 +00:00
ignore fewer errors in profileSettingsTab
This commit is contained in:
@@ -102,8 +102,12 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
modal.componentInstance.profile = deepClone(profile)
|
modal.componentInstance.profile = deepClone(profile)
|
||||||
modal.componentInstance.profileProvider = provider
|
modal.componentInstance.profileProvider = provider
|
||||||
try {
|
|
||||||
const result = await modal.result
|
const result = await modal.result.catch(() => null)
|
||||||
|
if (!result) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Fully replace the config
|
// Fully replace the config
|
||||||
for (const k in profile) {
|
for (const k in profile) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||||
@@ -112,7 +116,6 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
Object.assign(profile, result)
|
Object.assign(profile, result)
|
||||||
|
|
||||||
profile.type = provider.id
|
profile.type = provider.id
|
||||||
} catch (e) { }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
||||||
|
Reference in New Issue
Block a user