minor logic change

pull/1097/head
smit95tpatel 2022-02-07 19:24:47 +05:30
parent cc95b017eb
commit ed27881697
1 changed files with 9 additions and 2 deletions

View File

@ -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;