mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
fix: error on dashboard plugin usage page
This commit is contained in:
parent
e43500abba
commit
c3e07c1607
2 changed files with 7 additions and 6 deletions
|
@ -54,9 +54,10 @@ export function initDocs(app: express.Express) {
|
|||
}
|
||||
|
||||
const name = plugin.name;
|
||||
const info = plugin.info || {};
|
||||
const info = { ...(plugin.info || {}) };
|
||||
delete info.configSchema;
|
||||
|
||||
const commands = (plugin.messageCommands || []).map((cmd) => ({
|
||||
const messageCommands = (plugin.messageCommands || []).map((cmd) => ({
|
||||
trigger: cmd.trigger,
|
||||
permission: cmd.permission,
|
||||
signature: cmd.signature,
|
||||
|
@ -73,7 +74,7 @@ export function initDocs(app: express.Express) {
|
|||
info,
|
||||
configSchema,
|
||||
defaultOptions,
|
||||
commands,
|
||||
messageCommands,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue