File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/tdb-dashboard/src/hooks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments