adding new global variable
This commit is contained in:
parent
8921e2a118
commit
90bec8e5ab
|
|
@ -2,6 +2,7 @@ import { createSlice } from "@reduxjs/toolkit";
|
||||||
|
|
||||||
const initialState = {
|
const initialState = {
|
||||||
file: null,
|
file: null,
|
||||||
|
fileDesc: null,
|
||||||
result: null,
|
result: null,
|
||||||
validatedData: null,
|
validatedData: null,
|
||||||
pdfPageCount: null,
|
pdfPageCount: null,
|
||||||
|
|
@ -16,6 +17,9 @@ const uploadSlice = createSlice({
|
||||||
setFile: (state, action) => {
|
setFile: (state, action) => {
|
||||||
state.file = action.payload;
|
state.file = action.payload;
|
||||||
},
|
},
|
||||||
|
setFileDesc: (state, action) => {
|
||||||
|
state.fileDesc = action.payload;
|
||||||
|
},
|
||||||
setResult: (state, action) => {
|
setResult: (state, action) => {
|
||||||
state.result = action.payload;
|
state.result = action.payload;
|
||||||
},
|
},
|
||||||
|
|
@ -41,5 +45,5 @@ const uploadSlice = createSlice({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const { setFile, setResult, setValidatedData, reset, setPdfPageCount, setSelectedPages, setValidTable } = uploadSlice.actions;
|
export const { setFile, setFileDesc, setResult, setValidatedData, reset, setPdfPageCount, setSelectedPages, setValidTable } = uploadSlice.actions;
|
||||||
export default uploadSlice.reducer;
|
export default uploadSlice.reducer;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user