* 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
22 lines
556 B
TypeScript
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;
|