From 783396463987985c148608d9191f5990de5aa09c Mon Sep 17 00:00:00 2001 From: Mudit Choudhary Date: Thu, 14 Sep 2023 13:11:05 +0530 Subject: [PATCH] hide table when data is loading --- kolibri/core/assets/src/views/CoreTable.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kolibri/core/assets/src/views/CoreTable.vue b/kolibri/core/assets/src/views/CoreTable.vue index 26ecb05a184..c47dff75b37 100644 --- a/kolibri/core/assets/src/views/CoreTable.vue +++ b/kolibri/core/assets/src/views/CoreTable.vue @@ -82,7 +82,6 @@ }); } }); - // If we have loaded the data, but have no empty message and no rows, we log an error. if (!this.dataLoading && !this.emptyMessage && !tableHasRows) { logging.error('CoreTable: No rows in table, but no empty message provided.'); @@ -101,7 +100,7 @@ createElement('table', { class: 'core-table' }, [ ...(this.$slots.default || []), theadEl, - tbodyCopy, + this.dataLoading ? null : tbodyCopy, ]), dataStatusEl, ]);