From eb5fb4a9409734f20d68321559a58d4189928688 Mon Sep 17 00:00:00 2001 From: Thijn Date: Fri, 1 Nov 2024 09:01:17 +0100 Subject: [PATCH] console error fix --- src/sidebars/dashboard/DashboardSideBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sidebars/dashboard/DashboardSideBar.vue b/src/sidebars/dashboard/DashboardSideBar.vue index 966e801e..04587d12 100644 --- a/src/sidebars/dashboard/DashboardSideBar.vue +++ b/src/sidebars/dashboard/DashboardSideBar.vue @@ -401,7 +401,7 @@ export default { publicationStore.refreshPublicationList() // Wait for the user to read the feedback then close the model setTimeout(this.cleanup, 2000) - if (!files.value && files.value.length === 0) { + if (!files.value && files.value?.length === 0) { setTimeout(this.success = null, 2000) } })