bugfix 20240111
This commit is contained in:
@@ -3,6 +3,7 @@ import { createSlice } from "@reduxjs/toolkit";
|
||||
export const initialState = {
|
||||
table: [],
|
||||
productData: [],
|
||||
productHourData: [],
|
||||
chart: {
|
||||
year: [],
|
||||
week: [],
|
||||
@@ -17,6 +18,8 @@ const cuttingSlice = createSlice({
|
||||
reducers: {
|
||||
setCuttingTable: (state, action) => {
|
||||
if ("data" in action.payload) state.table = action.payload.data;
|
||||
if ("productHourData" in action.payload)
|
||||
state.productHourData = action.payload.productHourData;
|
||||
if ("productData" in action.payload)
|
||||
state.productData = action.payload.productData;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user