From a2abaad0c3d9c70e89b3e8d9691e9daf46d66efc Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Wed, 28 Jul 2021 01:17:53 +0000 Subject: [PATCH] Remove unused report values. --- src/App.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/App.js b/src/App.js index 3bd122e..ea4dbbe 100644 --- a/src/App.js +++ b/src/App.js @@ -399,7 +399,6 @@ function TableEditor(p) { const [data,setData] = useState([]) const [update,setUpdate] = useState(false) const [submitVals,setSubmitVal] = useReducer(updateVals,initialVals) - const [report,setReport] = useState("") const [loading,setLoading] = useState(false) function SubmitBoxes() { @@ -427,9 +426,6 @@ function TableEditor(p) { setFields(cols.filter((col)=>col.name!=="id")) setData(rows) }) - .catch((err)=>{ - setReport(JSON.stringify(err)) - }) .then(()=>{ setLoading(false) }) @@ -441,7 +437,6 @@ function TableEditor(p) { {!loading?
-
{JSON.stringify(fields)}