From 7d55361442f7d36def8bdd6db07461ef2fdc6801 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 9 Apr 2024 08:46:49 +0300 Subject: [PATCH] Re-apply suggestion by @martenson to revise toolshed condition in admin panel --- client/src/components/admin/AdminPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/admin/AdminPanel.vue b/client/src/components/admin/AdminPanel.vue index 6c938a234fdd..b6a5ea2bfd45 100644 --- a/client/src/components/admin/AdminPanel.vue +++ b/client/src/components/admin/AdminPanel.vue @@ -10,7 +10,7 @@ const { config, isConfigLoaded } = useConfig(); const adminProperties = computed(() => { return { enableQuotas: config.value.enable_quotas, - isToolshedInstalled: config.value.tool_shed_urls && config.value.tool_shed_urls.length > 0, + isToolshedInstalled: config.value.tool_shed_urls?.length > 0 ?? false, versionMajor: config.value.version_major, }; });