Skip to content

Commit 9554206

Browse files
authored
Table loading fix (#1440)
Signed-off-by: Denis Bykhov <[email protected]>
1 parent 9342d5a commit 9554206

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: plugins/view-resources/src/components/Table.svelte

+3-4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
) {
6262
const c = ++qindex
6363
loading = true
64+
objects = []
6465
q.query(
6566
_class,
6667
query,
@@ -123,9 +124,7 @@
123124
</script>
124125

125126
{#await buildModel({ client, _class, keys: config, options })}
126-
{#if !loading}
127-
<Loading />
128-
{/if}
127+
<Loading />
129128
{:then model}
130129
<table class="antiTable" class:metaColumn={enableChecking || showNotification} class:highlightRows>
131130
<thead class="scroller-thead">
@@ -167,7 +166,7 @@
167166
{/each}
168167
</tr>
169168
</thead>
170-
{#if objects}
169+
{#if objects.length}
171170
<tbody>
172171
{#each objects as object, row (object._id)}
173172
<tr class="antiTable-body__row" class:checking={checked.has(object._id)} class:fixed={row === selectRow}>

0 commit comments

Comments
 (0)