update api

This commit is contained in:
SrGooglo 2023-02-24 14:26:56 +00:00
parent 34f4623a36
commit e1b52fb382
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ export default class UserDataManager extends React.Component {
loading: false,
}
api = window.app.api.withEndpoints("main")
api = window.app.cores.api.withEndpoints("main")
componentDidMount = async () => {
if (!this.props.user && this.props.userId) {

View File

@ -12,7 +12,7 @@ export default class UserRolesManager extends React.Component {
roles: null,
}
api = window.app.api.withEndpoints("main")
api = window.app.cores.api.withEndpoints("main")
componentDidMount = async () => {
await this.fetchRoles()