Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions web-app/packages/lib/src/modules/user/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
await notificationStore.show({
text: `Email was sent to address: ${payload.email}`
})
} catch (err) {

Check warning on line 302 in web-app/packages/lib/src/modules/user/store.ts

View workflow job for this annotation

GitHub Actions / JavaScript code convention check

'err' is defined but never used. Allowed unused caught errors must match /^_/u
await notificationStore.error({
text: 'Failed to send confirmation email, please check your address in user profile settings'
})
Expand Down Expand Up @@ -498,15 +498,10 @@
*/
async getAuthNotProjectUserSearch(params: UserSearchParams) {
const projectStore = useProjectStore()
const access = projectStore.project.access
const projectUsers = [
...access.readers,
...access.writers,
...access.owners
]
const projectUsers = projectStore.access.map((item) => item.id)

const response = await UserApi.getAuthUserSearch(params)
if (access) {
if (projectUsers.length) {
response.data = response.data.filter(
(item) => !projectUsers.find((id) => id === item.id)
)
Expand Down
Loading