Skip to content

Commit

Permalink
fixed #9323 - "Save as profile" profile editability
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Oct 20, 2024
1 parent 2bc95bb commit 21aedb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tabby-terminal/src/tabContextMenu.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 21aedb6

Please sign in to comment.