mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
optimalization
This commit is contained in:
@@ -44,9 +44,8 @@ export default function registerCommand(command: GlobalCommand) {
|
||||
...x,
|
||||
[command.id]: {
|
||||
text:
|
||||
_val(command.category) || _val(command.name)
|
||||
? () =>
|
||||
`${_val(command.category)}: ${_val(command.name)}`
|
||||
_.isFunction(command.category) || _.isFunction(command.name)
|
||||
? () => `${_val(command.category)}: ${_val(command.name)}`
|
||||
: `${command.category}: ${command.name}`,
|
||||
...command,
|
||||
enabled: !testEnabled,
|
||||
|
||||
Reference in New Issue
Block a user