Skip to content

Commit f46095e

Browse files
authored
fix: show only one "delete instance" command (#5324)
<img width="501" height="213" alt="image" src="https://github.com/user-attachments/assets/8a5223e6-dbb7-42c6-89fa-1c8dd3945b52" />
1 parent 4a9fe16 commit f46095e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/builder/app/builder/shared/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({
497497

498498
{
499499
name: "deleteInstanceBuilder",
500+
label: "Delete Instance",
500501
defaultHotkeys: ["backspace", "delete"],
501502
// See "deleteInstanceCanvas" for details on why the command is separated for the canvas and builder.
502503
disableHotkeyOutsideApp: true,

apps/builder/app/canvas/shared/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const { emitCommand, subscribeCommands } = createCommandsEmitter({
2828
commands: [
2929
{
3030
name: "deleteInstanceCanvas",
31+
hidden: true,
3132
defaultHotkeys: ["backspace", "delete"],
3233
preventDefault: false,
3334
disableHotkeyOutsideApp: true,

0 commit comments

Comments
 (0)