Skip to content

Commit 1c65b6d

Browse files
update reducer:closeAction
1 parent 5d14abb commit 1c65b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/stateManagement/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function reducer(state, action) {
77
const { openTabIDs: arr } = state, removedItemIndex = arr.indexOf(action.tabId);
88
if (removedItemIndex >= 0) {
99
arr.splice(removedItemIndex, 1);
10-
state = helper.getCopyState(state);
10+
return helper.getCopyState(state);
1111
}
1212
return state;
1313
}

0 commit comments

Comments
 (0)