Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 75d5b99

Browse files
authored
Merge pull request #608 from FlowzPlatform/AnalyticsSocket
Socket added for analytics page
2 parents 2b4b3d0 + f5325f2 commit 75d5b99

File tree

3 files changed

+521
-394
lines changed

3 files changed

+521
-394
lines changed

client/package-lock.json

Lines changed: 26 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/components/cellRender.vue

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -263,20 +263,22 @@ export default {
263263
// },
264264
},
265265
async created () {
266-
this.cellLoading = true
267-
if (this.$store.state.userDetails[this.item.obj.userId]) {
268-
this.item.obj['userDetails'] = this.$store.state.userDetails[this.item.obj.userId]
269-
this.cellLoading = false
270-
} else {
271-
await axios.get(config.userdetails + this.item.obj.userId)
272-
.then((response) => {
273-
this.item.obj['userDetails'] = response.data.data[0]
274-
this.$store.state.userDetails[this.item.obj.userId] = response.data.data[0]
266+
if (this.item.obj.userId) {
267+
this.cellLoading = true
268+
if (this.$store.state.userDetails[this.item.obj.userId]) {
269+
this.item.obj['userDetails'] = this.$store.state.userDetails[this.item.obj.userId]
275270
this.cellLoading = false
276-
})
277-
.catch((error) => {
278-
console.log(error)
279-
})
271+
} else {
272+
await axios.get(config.userdetails + this.item.obj.userId)
273+
.then((response) => {
274+
this.item.obj['userDetails'] = response.data.data[0]
275+
this.$store.state.userDetails[this.item.obj.userId] = response.data.data[0]
276+
this.cellLoading = false
277+
})
278+
.catch((error) => {
279+
console.log(error)
280+
})
281+
}
280282
}
281283
}
282284
}

0 commit comments

Comments
 (0)