I fixed it
This commit is contained in:
parent
b17a675c17
commit
5d060d57bf
@ -162,7 +162,7 @@ function TableEditor(p) {
|
|||||||
.then(()=>{
|
.then(()=>{
|
||||||
setUpdate(true)
|
setUpdate(true)
|
||||||
})
|
})
|
||||||
},[fileData,p.path,p.BACKENDURL,p.password,fields])
|
},[fileData,p.path,p.BACKENDURL,p.password])
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
for (var col of fields) {
|
for (var col of fields) {
|
||||||
@ -797,12 +797,7 @@ function App() {
|
|||||||
if (row===undefined) {row=''}
|
if (row===undefined) {row=''}
|
||||||
if (col===undefined) {col=''}
|
if (col===undefined) {col=''}
|
||||||
var data = id?DATAID:DATA
|
var data = id?DATAID:DATA
|
||||||
var result = data!==undefined?data[table]!==undefined?data[table][row]!==undefined?data[table][row][col]!==undefined?data[table][row][col]:data[table][row]:data[table]:data:"no data"
|
return data!==undefined?data[table]!==undefined?data[table][row]!==undefined?data[table][row][col]!==undefined?data[table][row][col]:data[table][row]:data[table]:data:"no data"
|
||||||
if (typeof result === 'object' && result["GetData"]!==undefined) {
|
|
||||||
return undefined
|
|
||||||
} else {
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user