PromucFlow_constructor/app/client/src/reducers/entityReducers/jsExecutionsReducer.ts
Ankita Kinger c1e48f7486
feat: Refactor code for SAML integration (#12700)
* Implemented code splitting of some files for SAML integration

* Implemented code splitting of some more files for SAML integration

* updated redirect url component

* fixed an import statement

* fixed a unit test

* updated restart banner tooltip logic

* updated an import statement
2022-04-12 16:20:01 +05:30

22 lines
556 B
TypeScript

import { createReducer } from "utils/AppsmithUtils";
import {
ReduxActionErrorTypes,
ReduxAction,
} from "@appsmith/constants/ReduxActionConstants";
export type JSExecutionRecord = Record<string, string>;
const initialState: JSExecutionRecord = {};
const jsExecutionsReducer = createReducer(initialState, {
[ReduxActionErrorTypes.SAVE_JS_EXECUTION_RECORD]: (
state: JSExecutionRecord,
action: ReduxAction<JSExecutionRecord>,
) => {
return {
...state,
...action.payload,
};
},
});
export default jsExecutionsReducer;