Skip to content

Commit 03969b0

Browse files
committed
fix: editor not opening while adding servers from marketplace detail view
1 parent 60c7277 commit 03969b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lua/mcphub/ui/views/marketplace.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ function MarketplaceView:setup_active_mode()
448448
end
449449

450450
function MarketplaceView:open_config_editor(placeholder)
451-
utils.open_server_editor()
451+
utils.open_server_editor(placeholder)
452452
end
453453

454454
--- Helper to find server at cursor line

lua/mcphub/utils/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ function M.parse_config_from_json(text)
508508
return result
509509
end
510510

511-
function M.open_server_editor()
512-
ui_utils.multiline_input("Paste server's json config", "", function(content)
511+
function M.open_server_editor(placeholder)
512+
ui_utils.multiline_input("Paste server's json config", placeholder or "", function(content)
513513
if not content or vim.trim(content) == "" then
514514
return
515515
end

0 commit comments

Comments
 (0)