action on ViewportPanes for setting the active viewport

This commit is contained in:
dannyrb committed 2020-05-24 22:34:01 -04:00
1 parent 30caec0043
commit 9b75d95e48
3 files changed
+30 -2

No files matched your search

+2 -2
View File
@@ -54,8 +54,8 @@ function App({ config, defaultExtensions }) {
console.log(state, action);
switch (action.type) {
case 'DO_TODO':
return state;
case 'SET_ACTIVE_VIEWPORT_INDEX':
return { ...state, ...{ activeViewportIndex: action.payload } };
default:
return action.payload;
}