We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be90442 + c8fc8cd commit bb10cd0Copy full SHA for bb10cd0
src/store/modules/troubleshooting/troubleshooting.js
@@ -1,3 +1,4 @@
1
+import _ from 'lodash'
2
import { axiosRequest } from '@/services/services.js'
3
4
export const state = () => ({
@@ -10,7 +11,16 @@ export const getters = {}
10
11
12
export const mutations = {
13
SET_NO_DATA_AGENTS: (state, payload) => {
- state.noDataAgents = payload
14
+ const getDays = _.map(payload, (val) => {
15
+ let days = _.split(val.description, ' ')
16
+
17
+ return {
18
+ ...val,
19
+ daysFromCreation: _.nth(days, -2),
20
+ }
21
+ })
22
23
+ state.noDataAgents = getDays
24
},
25
SET_MISSING_DBS: (state, payload) => {
26
state.missingDbs = payload
0 commit comments