Remove unused report values.

master
sigonasr2, Sig, Sigo 3 years ago
parent cc138fd586
commit a2abaad0c3
  1. 5
      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?
<div className="table-responsive">
<table cellPadding="10" className="table text-light table-padding">
<caption>{JSON.stringify(fields)}</caption>
<thead>
<tr>
<th className="table-padding"></th>

Loading…
Cancel
Save