Skip to content

Commit fe3dea6

Browse files
committed
review call
1 parent 982ae10 commit fe3dea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tdb-dashboard/src/hooks/DocumentControlContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,20 @@ export const DocumentControlProvider = ({children}) => {
126126
useEffect(() => {
127127
// only if I'm in change request mode
128128
// I do not need to reload because the schema can not change
129+
if(!currentChangeRequest || documentTablesConfig === null) getGraphqlTableConfig()
129130
if(!currentChangeRequest || frames===null)getUpdatedFrames()
130131
// we need in edit/insert
131-
if(!currentChangeRequest || documentTablesConfig === null) getGraphqlTableConfig()
132132
if(id) {
133133
let documentID=decodeUrl(id)
134134
getDocument(documentID)
135135
}
136136
},[id,changeid])
137137

138+
138139
function getGraphqlTableConfig ( ){
139140
if(woqlClient){
140141
setLoading(true)
141142
setError(false)
142-
setFrames(null)
143143
const clientCopy = woqlClient.copy()
144144
clientCopy.connectionConfig.api_extension = 'api/'
145145
const baseUrl = clientCopy.connectionConfig.dbBase("tables")

0 commit comments

Comments
 (0)