From 8a94b81052a4cf6b833bf298abcd89ed93a0ada2 Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Sat, 27 Jan 2024 01:35:52 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E5=85=A5=E3=82=8C=E3=82=8B=E6=9E=A0=E4=BD=9C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stateBox/useAllTrainDiagram.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 (