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