From ed27881697e4bc2c65d4e6396d2c0cc27cc107a1 Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Mon, 7 Feb 2022 19:24:47 +0530 Subject: [PATCH] minor logic change --- frontend/src/components/Dashboard/ServiceTreeView.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Dashboard/ServiceTreeView.vue b/frontend/src/components/Dashboard/ServiceTreeView.vue index 8b3f37a3..20843dad 100644 --- a/frontend/src/components/Dashboard/ServiceTreeView.vue +++ b/frontend/src/components/Dashboard/ServiceTreeView.vue @@ -161,9 +161,16 @@ export default { this.treeData = treeData; }, getServiceStatus: async function (dateTime) { - this.isLoading = true; + let sec = null; - await this.$store.dispatch({ type: 'getServiceStatus', payload: dateTime }); + this.isLoading = true; + if (!dateTime) { + sec = ''; + } else { + sec = this.convertDateObjToSec(dateTime); + } + + await this.$store.dispatch({ type: 'getServiceStatus', payload: sec }); this.treeInitialize(); this.isLoading = false;