diff --git a/plugins/view-resources/src/components/Table.svelte b/plugins/view-resources/src/components/Table.svelte index 9ceb57ac7d..a402721e19 100644 --- a/plugins/view-resources/src/components/Table.svelte +++ b/plugins/view-resources/src/components/Table.svelte @@ -61,6 +61,7 @@ ) { const c = ++qindex loading = true + objects = [] q.query( _class, query, @@ -123,9 +124,7 @@ {#await buildModel({ client, _class, keys: config, options })} - {#if !loading} - - {/if} + {:then model} @@ -167,7 +166,7 @@ {/each} - {#if objects} + {#if objects.length} {#each objects as object, row (object._id)}