fix
This commit is contained in:
@@ -33,7 +33,7 @@ const useTenantManager = ({
|
||||
const { data } = await apiClient.get('/tenants');
|
||||
appDispatch({
|
||||
type: 'SET_TENANTS',
|
||||
tenants: Array.isArray(data?.tenants) ? data.tenants : [],
|
||||
tenants: Array.isArray(data) ? data : [],
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user