diff --git a/stateBox/useAllTrainDiagram.js b/stateBox/useAllTrainDiagram.js index 63f3a92..f4f5158 100644 --- a/stateBox/useAllTrainDiagram.js +++ b/stateBox/useAllTrainDiagram.js @@ -12,6 +12,8 @@ export const useAllTrainDiagram = () => { export const AllTrainDiagramProvider = ({ children }) => { const [allTrainDiagram, setAllTrainDiagram] = useState(); + const customData = { + }; useEffect(() => { fetch( "https://script.google.com/macros/s/AKfycbx_s7RB-xTy-iAslFJg7LfplLV09-hjDXEjdi9kCP_JT45wq17Af_IPOKIOqIfaNDg/exec" @@ -25,7 +27,10 @@ export const AllTrainDiagramProvider = ({ children }) => { }); return data; }) - .then((res) => setAllTrainDiagram(res)); + .then((res) => { + Object.assign(res, customData); + setAllTrainDiagram(res); + }); }, []); return (