File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,16 @@ const mutations = {
73
73
} ,
74
74
75
75
'UPDATE_INSPECTED_STATE' ( state , value ) {
76
- state . inspectedState = value
76
+ state . inspectedState = parse ( value )
77
77
} ,
78
78
79
79
'RECEIVE_STATE' ( state , { index, snapshot } ) {
80
- state . lastReceivedState = snapshot
80
+ state . lastReceivedState = parse ( snapshot )
81
81
snapshotsCache . set ( index , snapshot )
82
82
} ,
83
83
84
84
'UPDATE_BASE_STATE' ( state , value ) {
85
- state . base = value
85
+ state . base = parse ( value )
86
86
} ,
87
87
88
88
'TIME_TRAVEL' ( state , index ) {
@@ -135,11 +135,8 @@ const getters = {
135
135
136
136
const data = entry ? inspectedState : base
137
137
if ( data ) {
138
- const snapshot = parse ( data )
139
- if ( snapshot ) {
140
- res . state = snapshot . state
141
- res . getters = snapshot . getters
142
- }
138
+ res . state = data . state
139
+ res . getters = data . getters
143
140
}
144
141
145
142
return res
You can’t perform that action at this time.
0 commit comments