Skip to content

Commit 88ff44b

Browse files
authored
Merge pull request #185 from terminusdb/update_client
fix document hook
2 parents 9628422 + c96301f commit 88ff44b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const DocumentControlProvider = ({children}) => {
4949
try{
5050
// to be review I'm adding get table config here
5151
if(woqlClient){
52+
setDocumentClasses(false)
5253
setLoading(true)
5354
setError(false)
5455
const dataProduct = woqlClient.db()
@@ -68,6 +69,9 @@ export const DocumentControlProvider = ({children}) => {
6869
// I need to reload the class too
6970
async function getDocNumber(){
7071
try{
72+
setDocumentClasses(false)
73+
setTotalDocumentCount(false)
74+
setPerDocument(false)
7175
setLoading(true)
7276
setError(false)
7377
// I need to reload because I do not know if this can change
@@ -140,6 +144,7 @@ export const DocumentControlProvider = ({children}) => {
140144

141145

142146
function getGraphqlTableConfig ( ){
147+
setDocumentTablesConfig(null)
143148
if(woqlClient){
144149
setLoading(true)
145150
setError(false)
@@ -157,6 +162,7 @@ export const DocumentControlProvider = ({children}) => {
157162
}
158163

159164
function getUpdatedFrames() {
165+
setFrames(null)
160166
if(woqlClient){
161167
setLoading(true)
162168
setError(false)

0 commit comments

Comments
 (0)