From 21aedb6045d710530705307c34b618cdca1a0d84 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 20 Oct 2024 23:42:02 +0200 Subject: [PATCH] fixed #9323 - "Save as profile" profile editability --- tabby-terminal/src/tabContextMenu.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tabby-terminal/src/tabContextMenu.ts b/tabby-terminal/src/tabContextMenu.ts index fa4aa8e1..5b0f4ad4 100644 --- a/tabby-terminal/src/tabContextMenu.ts +++ b/tabby-terminal/src/tabContextMenu.ts @@ -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) {