3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

fix: error on dashboard plugin usage page

This commit is contained in:
Dragory 2023-04-02 00:02:22 +03:00
parent e43500abba
commit c3e07c1607
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 7 additions and 6 deletions

View file

@ -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,
});
});
}