Skip to content

Commit 1ee462f

Browse files
committed
refactor: workflow manager external const name
1 parent 58c8631 commit 1ee462f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ducks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as workflowManagerInternalReducer } from './workflowManagerInternal.slice';
2-
export const prefix = '@@workflowManagerExternal';
2+
export const WORFLOW_MANAGER_EXTERNAL_PREFFIX = '@@workflowManagerExternal';

src/ducks/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createAction } from '@reduxjs/toolkit';
22

3-
import { prefix } from '.';
3+
import { WORFLOW_MANAGER_EXTERNAL_PREFFIX } from '.';
44

55
export const createWorkflowAction = (
66
workflowAction: string,
77
payload: Record<string, unknown>,
88
) => {
9-
const actionName = `${prefix}/${workflowAction}`;
9+
const actionName = `${WORFLOW_MANAGER_EXTERNAL_PREFFIX}/${workflowAction}`;
1010

1111
return createAction<typeof payload>(actionName)(payload);
1212
};

0 commit comments

Comments
 (0)