fix: Fix storybook (no-changelog) (#4624)
since we migrated to vite, storybook/webpack aren't doing all the babel transforms. that's we we need to revert all optional-chaining and nullish-coalescing in design-system. Hopefully this will be remedied after we move to vite for storybook.
This commit is contained in:
committed by
GitHub
parent
423ee81e33
commit
58630e43c0
@@ -82,13 +82,13 @@ export default mixins(Locale).extend({
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
fitleredUsers(): IUser[] {
|
||||
filteredUsers(): IUser[] {
|
||||
return (this.users as IUser[]).filter((user) => {
|
||||
if (user.isPendingUser || !user.email) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.ignoreIds?.includes(user.id)) {
|
||||
if (this.ignoreIds && this.ignoreIds.includes(user.id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ export default mixins(Locale).extend({
|
||||
});
|
||||
},
|
||||
sortedUsers(): IUser[] {
|
||||
return [...this.fitleredUsers].sort((a: IUser, b: IUser) => {
|
||||
return [...this.filteredUsers].sort((a: IUser, b: IUser) => {
|
||||
if (a.lastName && b.lastName && a.lastName !== b.lastName) {
|
||||
return a.lastName > b.lastName ? 1 : -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user