diff --git a/frontend/src/routes/chart/[mrn]/flowsheet/+page.svelte b/frontend/src/routes/chart/[mrn]/flowsheet/+page.svelte
index ed6eeee..28cbd05 100644
--- a/frontend/src/routes/chart/[mrn]/flowsheet/+page.svelte
+++ b/frontend/src/routes/chart/[mrn]/flowsheet/+page.svelte
@@ -258,9 +258,7 @@
{#each component_groups as group, idx}
{group.datestr.substring(0, 4)} {group.datestr.substring(5)} {#if false}{datetime_timestr(group.values[0]._ts)} {/if} | {/each}
-
- {#if pattern}
-
+ {#if pattern}
{#each component_names as name}
{#if filter_test(pattern, name)}
@@ -271,8 +269,10 @@
{/if}
{/each}
-
-
+ {/if}
+
+
+ {#if pattern}
{#each component_names as name}
{#if !filter_test(pattern, name)}
@@ -283,9 +283,7 @@
{/if}
{/each}
-
- {:else}
-
+ {:else}
{#each component_names as name}
{name} |
@@ -294,8 +292,8 @@
{/each}
{/each}
-
- {/if}
+ {/if}
+