diff --git a/packages/standard-components/src/Search.svelte b/packages/standard-components/src/Search.svelte index 195479cdd9..509205f8f1 100644 --- a/packages/standard-components/src/Search.svelte +++ b/packages/standard-components/src/Search.svelte @@ -1,6 +1,5 @@ -
-
- {#if schema} - {#each columns as field} -
- - {#if schema[field].type === 'options'} - - {:else if schema[field].type === 'datetime'} - - {:else if schema[field].type === 'boolean'} - - {:else if schema[field].type === 'number'} - - {:else if schema[field].type === 'string'} - - {/if} -
- {/each} - {/if} -
- - -
-
- {#if loaded} - {#if rows.length > 0} - {#if $component.children === 0 && $builderStore.inBuilder} -

Add some components to display.

- {:else} - {#each rows as row} - - - + +
+
+ {#if schema} + {#each columns as field} +
+ + {#if schema[field].type === 'options'} + + {:else if schema[field].type === 'datetime'} + + {:else if schema[field].type === 'boolean'} + + {:else if schema[field].type === 'number'} + + {:else if schema[field].type === 'string'} + + {/if} +
{/each} {/if} - {:else if noRowsMessage} -

{noRowsMessage}

- {/if} - {/if} - + {#if loaded} + {#if rows.length > 0} + {#if $component.children === 0 && $builderStore.inBuilder} +

Add some components to display.

+ {:else} + {#each rows as row} + + + + {/each} + {/if} + {:else if noRowsMessage} +

{noRowsMessage}

+ {/if} {/if} +
-
+