From 1159594cf97712551919e8575299f05ffa01036f Mon Sep 17 00:00:00 2001 From: Arsenije Savic Date: Wed, 20 Sep 2023 08:27:17 -0600 Subject: [PATCH] fix(dho-selector): check if data exist --- 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' })