fix duplicate command id
This commit is contained in:
parent
765d4976ec
commit
b11df1b888
|
@ -87,14 +87,13 @@ const AssistantManager = ({
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// This command will only show up in Command Palette when the check function returns true
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
plugin.addCommand({
|
plugin.addCommand({
|
||||||
id: 'create-assistant-from-active-note',
|
id: 'create-thread',
|
||||||
name: 'Create Thread',
|
name: 'Create Thread',
|
||||||
callback: async () => {
|
callback: async () => {
|
||||||
const isViewOpen = app.workspace.getLeavesOfType(INTELLIGENCE_VIEW_TYPE).some((leaf) => {
|
const isViewOpen = app.workspace.getLeavesOfType(INTELLIGENCE_VIEW_TYPE).some((leaf) => {
|
||||||
|
|
Loading…
Reference in New Issue