use correct response shape

This commit is contained in:
bymyself
2025-04-14 16:22:45 -07:00
committed by Jin Yi
parent 226f84eaf1
commit cf174d30b9
2 changed files with 5 additions and 4 deletions

View File

@@ -719,9 +719,10 @@ export function useCoreCommands(): ComfyCommand[] {
label: 'Custom Nodes Manager',
versionAdded: '1.12.10',
function: async () => {
const isLegacyManagerUI =
await useComfyManagerService().isLegacyManagerUI()
if (isLegacyManagerUI) {
const { is_legacy_manager_ui } =
(await useComfyManagerService().isLegacyManagerUI()) ?? {}
if (is_legacy_manager_ui === true) {
try {
await useCommandStore().execute(
'Comfy.Manager.Menu.ToggleVisibility' // This command is registered by legacy manager FE extension