Skip to content

Commit 91024bc

Browse files
committed
fix(CDataTable): fixed issue with loading/no-items-slot
if loading the items in the table asynchronously and passing the loading prop to the c-data-table, until the request would be done, the table would display both the no-item-slot and the loading slot. this fix changes it so that while loading, do not display the no-items-slot
1 parent 3c8c082 commit 91024bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/table/CDataTable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
</td>
160160
</tr>
161161
</template>
162-
<tr v-if="!currentItems.length">
162+
<tr v-if="!currentItems.length && !loading">
163163
<td :colspan="colspan">
164164
<slot name="no-items-view">
165165
<div class="text-center my-5">

0 commit comments

Comments
 (0)