File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/containers/Tenant/Diagnostics/AccessRights Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function AccessRights() {
2323 const editable = useEditAccessAvailable ( ) ;
2424 const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
2525 const dialect = useAclSyntax ( ) ;
26- const { isLoading , error} = schemaAclApi . useGetSchemaAclQuery (
26+ const { isFetching , currentData , error} = schemaAclApi . useGetSchemaAclQuery (
2727 { path, database, dialect} ,
2828 {
2929 pollingInterval : autoRefreshInterval ,
@@ -32,6 +32,8 @@ export function AccessRights() {
3232
3333 const { handleShowGrantAccessChange} = useTenantQueryParams ( ) ;
3434
35+ const loading = isFetching && ! currentData ;
36+
3537 const renderContent = ( ) => {
3638 if ( error ) {
3739 return < ResponseError error = { error } /> ;
@@ -63,5 +65,5 @@ export function AccessRights() {
6365 ) ;
6466 } ;
6567
66- return < LoaderWrapper loading = { isLoading } > { renderContent ( ) } </ LoaderWrapper > ;
68+ return < LoaderWrapper loading = { loading } > { renderContent ( ) } </ LoaderWrapper > ;
6769}
You can’t perform that action at this time.
0 commit comments