Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/tdb-dashboard/src/hooks/DocumentControlContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const DocumentControlProvider = ({children}) => {
try{
// to be review I'm adding get table config here
if(woqlClient){
setDocumentClasses(false)
setLoading(true)
setError(false)
const dataProduct = woqlClient.db()
Expand All @@ -68,6 +69,9 @@ export const DocumentControlProvider = ({children}) => {
// I need to reload the class too
async function getDocNumber(){
try{
setDocumentClasses(false)
setTotalDocumentCount(false)
setPerDocument(false)
setLoading(true)
setError(false)
// I need to reload because I do not know if this can change
Expand Down Expand Up @@ -140,6 +144,7 @@ export const DocumentControlProvider = ({children}) => {


function getGraphqlTableConfig ( ){
setDocumentTablesConfig(null)
if(woqlClient){
setLoading(true)
setError(false)
Expand All @@ -157,6 +162,7 @@ export const DocumentControlProvider = ({children}) => {
}

function getUpdatedFrames() {
setFrames(null)
if(woqlClient){
setLoading(true)
setError(false)
Expand Down