Merge commit '8a94b81052a4cf6b833bf298abcd89ed93a0ada2' into special/royal-main

This commit is contained in:
harukin-OneMix4 2024-01-27 02:07:28 +09:00
commit fa7c32298e

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 (