diff --git a/src/Pages/JsonPage/Json.tsx b/src/Pages/JsonPage/Json.tsx index c202ffeb..f6fdb360 100644 --- a/src/Pages/JsonPage/Json.tsx +++ b/src/Pages/JsonPage/Json.tsx @@ -8,23 +8,25 @@ function JsonPage(){ const [form, setForm]=useState({}) const [fetchError, setError]=useState(null) const location = useLocation(); - const files:File[] = location.state.data[0]; + const files:File[] = location.state.data; const [uploadStarted, startUpload] = useState(false); - const api_url = "http://localhost:5000" + const api_url = "https://shiny-goggles-75q6p5xj4wwfp6gg-5000.app.github.dev/" const upload_all = async ()=>{ + const res = [] for(let i=0; i{ if(!uploadStarted){