diff --git a/app/javascript/dashboard/components-next/sidebar/SidebarSubGroup.vue b/app/javascript/dashboard/components-next/sidebar/SidebarSubGroup.vue index a938a202e..8e3c3009e 100644 --- a/app/javascript/dashboard/components-next/sidebar/SidebarSubGroup.vue +++ b/app/javascript/dashboard/components-next/sidebar/SidebarSubGroup.vue @@ -2,7 +2,6 @@ import { computed, ref } from 'vue'; import SidebarGroupLeaf from './SidebarGroupLeaf.vue'; import SidebarGroupSeparator from './SidebarGroupSeparator.vue'; -import SidebarGroupEmptyLeaf from './SidebarGroupEmptyLeaf.vue'; import { useSidebarContext } from './provider'; import { useEventListener } from '@vueuse/core'; @@ -26,11 +25,6 @@ const accessibleItems = computed(() => ); const hasAccessibleItems = computed(() => { - if (props.children.length === 0) { - // cases like segment, folder and labels where users can create new items - return true; - } - return accessibleItems.value.length > 0; }); @@ -55,7 +49,7 @@ useEventListener(scrollableContainer, 'scroll', () => { :icon class="my-1" /> -