Fix Test Mode toggling breaking.
This commit is contained in:
parent
5454574807
commit
bb528b9b41
@ -101,6 +101,8 @@ function TableEditor(p) {
|
||||
|
||||
const initialVals={}
|
||||
|
||||
const { TESTMODE } = p
|
||||
|
||||
function updateVals(state,update) {
|
||||
if (update==='Clear') {
|
||||
return initialVals
|
||||
@ -165,7 +167,7 @@ function TableEditor(p) {
|
||||
|
||||
useEffect(()=>{
|
||||
setUpdate(true)
|
||||
},[p.path])
|
||||
},[p.path,TESTMODE])
|
||||
|
||||
useEffect(()=>{
|
||||
for (var col of fields) {
|
||||
@ -448,7 +450,7 @@ function AdminPanel(p) {
|
||||
<Helmet>
|
||||
<title>{APP_TITLE+" - Admin Panel: "+nav.page}</title>
|
||||
</Helmet>
|
||||
{nav.render??<TableEditor password={password} BACKENDURL={GetBackendURL(p)} path={nav.table}/>}
|
||||
{nav.render??<TableEditor TESTMODE={p.TESTMODE} password={password} BACKENDURL={GetBackendURL(p)} path={nav.table}/>}
|
||||
</div></div></Route>)}
|
||||
|
||||
<Route path={process.env.PUBLIC_URL+"/admin/database_manager"}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user