Merge commit '8a94b81052a4cf6b833bf298abcd89ed93a0ada2' into develop

This commit is contained in:
harukin-OneMix4 2024-01-27 01:37:23 +09:00
commit 6714f1d612

View File

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