File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ function initApp (shell) {
147
147
148
148
if ( index === - 1 ) {
149
149
store . commit ( 'vuex/UPDATE_BASE_STATE' , snapshot )
150
- } else if ( store . state . vuex . inspectedIndex === index ) {
150
+ } else if ( store . getters [ ' vuex/absoluteInspectedIndex' ] === index ) {
151
151
store . commit ( 'vuex/UPDATE_INSPECTED_STATE' , snapshot )
152
152
}
153
153
Original file line number Diff line number Diff line change @@ -138,6 +138,14 @@ const getters = {
138
138
139
139
filteredHistory ( { history, filterRegex } ) {
140
140
return history . filter ( entry => filterRegex . test ( entry . mutation . type ) )
141
+ } ,
142
+
143
+ absoluteInspectedIndex ( { history, inspectedIndex } , { filteredHistory } ) {
144
+ const entry = filteredHistory [ inspectedIndex ]
145
+ if ( entry ) {
146
+ return history . indexOf ( entry )
147
+ }
148
+ return - 1
141
149
}
142
150
}
143
151
You can’t perform that action at this time.
0 commit comments