From 5d060d57bfe67e5ff5495b942284af8510f0099e Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Mon, 23 Aug 2021 19:41:46 +0900 Subject: [PATCH] I fixed it --- src/App.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/App.js b/src/App.js index b67fa56..8a1e058 100644 --- a/src/App.js +++ b/src/App.js @@ -162,7 +162,7 @@ function TableEditor(p) { .then(()=>{ setUpdate(true) }) - },[fileData,p.path,p.BACKENDURL,p.password,fields]) + },[fileData,p.path,p.BACKENDURL,p.password]) useEffect(()=>{ for (var col of fields) { @@ -797,12 +797,7 @@ function App() { if (row===undefined) {row=''} if (col===undefined) {col=''} 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" - if (typeof result === 'object' && result["GetData"]!==undefined) { - return undefined - } else { - return result - } + 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(()=>{