Getting data no longer errors out.
This commit is contained in:
parent
4834fbba52
commit
dea6748034
10
src/App.js
10
src/App.js
@ -786,10 +786,12 @@ function App() {
|
||||
const [poisonResist] = useState(0)
|
||||
|
||||
const [TESTMODE,setTESTMODE] = useState(false)
|
||||
const [DATA,setDATA] = useState({GetData:()=>{}})
|
||||
const [DATA,setDATA] = useState(undefined)
|
||||
const [DATAID,setDATAID] = useState({GetData:()=>{}})
|
||||
const [update,setUpdate] = useState(false)
|
||||
|
||||
const [dataLoaded,setDataLoaded] = useState(false)
|
||||
|
||||
const [LOGGEDINUSER,setLOGGEDINUSER] = useState("")
|
||||
const [LOGGEDINHASH,setLOGGEDINHASH] = useState("")
|
||||
|
||||
@ -797,7 +799,11 @@ function App() {
|
||||
if (row===undefined) {row=''}
|
||||
if (col===undefined) {col=''}
|
||||
var data = id?DATAID: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 (!data) {
|
||||
return "no data"
|
||||
} else {
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user