refactor(editor): Migrate users.store to composition API (no-changelog) (#9960)

This commit is contained in:
Ricardo Espinoza
2024-07-08 10:21:03 -04:00
committed by GitHub
parent 4ff4534454
commit f40f9b0287
11 changed files with 407 additions and 370 deletions

View File

@@ -119,7 +119,7 @@ export default defineComponent({
...mapStores(useUsersStore, useProjectsStore),
userToDelete(): IUser | null {
if (!this.activeId) return null;
return this.usersStore.getUserById(this.activeId);
return this.usersStore.usersById[this.activeId];
},
isPending(): boolean {
return this.userToDelete ? this.userToDelete && !this.userToDelete.firstName : false;