fixed #9323 - "Save as profile" profile editability

This commit is contained in:
Eugene 2024-10-20 23:42:02 +02:00
parent 2bc95bb0e0
commit 21aedb6045
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -1,4 +1,3 @@
import deepClone from 'clone-deep'
import { Injectable, Optional, Inject } from '@angular/core'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { BaseTabComponent, TabContextMenuItemProvider, NotificationsService, MenuItemOptions, TranslateService, SplitTabComponent, PromptModalComponent, ConfigService, PartialProfile, Profile } from 'tabby-core'
@ -181,7 +180,7 @@ export class SaveAsProfileContextMenu extends TabContextMenuItemProvider {
return
}
const options = deepClone(tab.profile.options)
const options = JSON.parse(JSON.stringify(tab.profile.options))
const cwd = await tab.session?.getWorkingDirectory() ?? tab.profile.options.cwd
if (cwd) {