We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39629a0 commit bb2fc94Copy full SHA for bb2fc94
src/utils/api/api.factory.js
@@ -33,8 +33,9 @@ const _apiProps = {
33
return this;
34
},
35
_subscribeSelectedTabsHistory: function () {
36
- this.on('onChange', ({ isSwitched, oldState }) => {
37
- isSwitched && this.activedTabsHistory.add(oldState.selectedTabID);
+ this.on('onChange', ({ currentData, perviousData }) => {
+ const isSwitched = perviousData.selectedTabID !== currentData.selectedTabID;
38
+ isSwitched && this.activedTabsHistory.add(perviousData.selectedTabID);
39
});
40
41
0 commit comments