From 50eae705631f479a4e6655ecfd3a219d471d964a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsenije=20Savi=C4=87?= Date: Wed, 20 Sep 2023 10:24:34 -0600 Subject: [PATCH] fix(dho-selector): check if data exist (#2468) --- src/layouts/DhoSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/DhoSelector.vue b/src/layouts/DhoSelector.vue index 2676ab27c..c1fd19a22 100644 --- a/src/layouts/DhoSelector.vue +++ b/src/layouts/DhoSelector.vue @@ -301,7 +301,7 @@ export default { result (res) { const data = res.data?.queryDao - if (!(data.length)) { + if (!(data?.length)) { this.daoQueryNumberOfRetires++ if (this.daoQueryNumberOfRetires > MAX_NUM_OF_RETIRES) { this.$router.push({ path: '/not-found' })