Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix: update-preview cmd shouldn't be completed with current file
Browse files Browse the repository at this point in the history
Clicking on `update-preview` from the list of "Available commands"
autocompletes it with the current file. This makes the command invalid
as it does not accept any filepath. This is fixed now.
  • Loading branch information
siddhantk232 committed Sep 26, 2024
1 parent 7d4909e commit ec9f21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/editor/command-k/index.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $on-click$: $vars.open-command-k-with-current-file(cmd=delete-file)
$on-click$: $vars.open-command-k-with-current-file(cmd=push-file)

-- ftd.text: `update-preview` (Update the preview panel)
$on-click$: $vars.open-command-k-with-current-file(cmd=update-preview)
$on-click$: $vars.open-command-k(cmd=update-preview)

-- end: ftd.column

Expand Down

0 comments on commit ec9f21a

Please sign in to comment.