Skip to content

Commit

Permalink
Merge branch 'main' into atar/delete-autosave
Browse files Browse the repository at this point in the history
  • Loading branch information
atarashansky authored Aug 25, 2022
2 parents c6c4439 + c23be52 commit 98a2730
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/src/reducers/annoMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
Reducer for the annoMatrix
*/

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any -- - FIXME: disabled temporarily on migrate to TS.
const AnnoMatrix = (state = null, action: any) => {
import { AnyAction } from "redux";
import AnnoMatrix from "../annoMatrix/annoMatrix";

const AnnoMatrixReducer = (
state: AnnoMatrix | null = null,
action: AnyAction
) => {
if (action.annoMatrix) {
return action.annoMatrix;
}
return state;
};

export default AnnoMatrix;
export default AnnoMatrixReducer;

0 comments on commit 98a2730

Please sign in to comment.