diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte
index d46a28b3d..6c4eda9d3 100644
--- a/src/lib/components/workspace/Models/ModelEditor.svelte
+++ b/src/lib/components/workspace/Models/ModelEditor.svelte
@@ -720,40 +720,46 @@
-
+ {#if $functions.filter((func) => func.type === 'filter').length > 0 || $functions.filter((func) => func.type === 'action').length > 0}
+
-
- func.type === 'filter')}
- />
-
-
- {#if filterIds.length > 0}
- {@const toggleableFilters = $functions.filter(
- (func) =>
- func.type === 'filter' &&
- (filterIds.includes(func.id) || func?.is_global) &&
- func?.meta?.toggle
- )}
-
- {#if toggleableFilters.length > 0}
+ {#if $functions.filter((func) => func.type === 'filter').length > 0}
- func.type === 'filter')}
+ />
+
+
+ {#if filterIds.length > 0}
+ {@const toggleableFilters = $functions.filter(
+ (func) =>
+ func.type === 'filter' &&
+ (filterIds.includes(func.id) || func?.is_global) &&
+ func?.meta?.toggle
+ )}
+
+ {#if toggleableFilters.length > 0}
+
+
+
+ {/if}
+ {/if}
+ {/if}
+
+ {#if $functions.filter((func) => func.type === 'action').length > 0}
+
+
func.type === 'action')}
/>
{/if}
{/if}
-
-
func.type === 'action')}
- />
-
-