File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,15 @@ function Tenant(props: TenantProps) {
7878 const tenantName = name as string ;
7979
8080 useEffect ( ( ) => {
81- const schemaPath = currentSchemaPath || tenantName ;
82- dispatch ( resetLoadingState ( ) ) ;
8381 dispatch ( getSchema ( { path : tenantName } ) ) ;
84- dispatch ( getSchema ( { path : schemaPath } ) ) ;
85- dispatch ( getSchemaAcl ( { path : schemaPath } ) ) ;
86- } , [ tenantName , currentSchemaPath , dispatch ] ) ;
82+ dispatch ( getSchemaAcl ( { path : tenantName } ) ) ;
83+ } , [ tenantName , dispatch ] ) ;
84+
85+ useEffect ( ( ) => {
86+ dispatch ( resetLoadingState ( ) ) ;
87+ dispatch ( getSchema ( { path : currentSchemaPath } ) ) ;
88+ dispatch ( getSchemaAcl ( { path : currentSchemaPath } ) ) ;
89+ } , [ currentSchemaPath , dispatch ] ) ;
8790
8891 useEffect ( ( ) => {
8992 dispatch ( disableAutorefresh ( ) ) ;
You can’t perform that action at this time.
0 commit comments