Skip to content

Commit 6e504d2

Browse files
author
Adrien
committed
feat(catalog-ui): render tree in tree filter only when having data
1 parent cad1301 commit 6e504d2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/catalog-ui/src/components/smart-filter/TreeSearchFilterPanel.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<!-- v8 ignore start -->
2929
<div class="tree-search-filter-panel">
3030
<generic-tree
31+
v-if="items.length > 0"
3132
v-model:ticked="tickedNodeKeys"
3233
:tickeable="true"
3334
:ui-namespace="localUiNamespace"
@@ -213,4 +214,8 @@ onMounted(() => {
213214
});
214215
</script>
215216

216-
<style scoped></style>
217+
<style scoped>
218+
.generic-tree-container {
219+
padding: 0;
220+
}
221+
</style>

0 commit comments

Comments
 (0)