From 6636092410a76df9e9f8529464d8d1883d3d8f4b Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 1 Apr 2023 13:43:51 +0300 Subject: [PATCH] fix(dashboard): fix error when there are no message and/or slash commands in a plugin --- dashboard/src/components/docs/Plugin.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/components/docs/Plugin.vue b/dashboard/src/components/docs/Plugin.vue index b384ea3d..ab88c46b 100644 --- a/dashboard/src/components/docs/Plugin.vue +++ b/dashboard/src/components/docs/Plugin.vue @@ -309,9 +309,9 @@ }, hasUsageInfo() { if (!this.data) return true; - if (this.data.messageCommands.length) return true; - if (this.data.slashCommands.length) return true; - if (this.data.info.usageGuide) return true; + if (this.data.messageCommands?.length) return true; + if (this.data.slashCommands?.length) return true; + if (this.data.info?.usageGuide) return true; return false; }, }),