Fix null in database editor.

master
Joshua Sigona 3 years ago
parent bb6aeda80a
commit 30b0f20d69
  1. 2
      src/App.js

@ -215,7 +215,7 @@ function TableEditor(p) {
<td><XSquareFill className="webicon" onClick={()=>{axios.delete(p.BACKENDURL+p.path,{data:{id:dat.id,pass:p.password}}).then(()=>{setUpdate(true)}).catch((err)=>{alert(err.response.data)})}}/></td>{fields.map((col,i)=><td key={dat.id+"_"+i} className="table-padding table">
<InputBox lockSubmission={lockSubmission} data={dependencies[col.name]} callback={(value)=>{
return axios.patch(p.BACKENDURL+p.path,{
[col.name]:value,
[col.name]:value==="null"?null:value,
id:dat.id,
pass:p.password
})

Loading…
Cancel
Save