Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
198f25df
Commit
198f25df
authored
Jun 03, 2021
by
NataliaTepluhina
Committed by
Natalia Tepluhina
Jun 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a check for user: null
Changelog: changed
parent
7945d196
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app/assets/javascripts/vue_shared/components/user_select/user_select.vue
...scripts/vue_shared/components/user_select/user_select.vue
+3
-1
ee/app/assets/javascripts/boards/stores/actions.js
ee/app/assets/javascripts/boards/stores/actions.js
+3
-2
No files found.
app/assets/javascripts/vue_shared/components/user_select/user_select.vue
View file @
198f25df
...
...
@@ -113,7 +113,9 @@ export default {
update
(
data
)
{
// TODO Remove null filter (BE fix required)
// https://gitlab.com/gitlab-org/gitlab/-/issues/329750
return
data
.
workspace
?.
users
?.
nodes
.
filter
((
x
)
=>
x
).
map
(({
user
})
=>
user
)
||
[];
const
users
=
data
.
workspace
?.
users
?.
nodes
.
filter
((
x
)
=>
x
).
map
(({
user
})
=>
user
)
||
[];
// User field is nullable and we only want to display non-null users
return
users
.
filter
((
u
)
=>
u
);
},
debounce
:
ASSIGNEES_DEBOUNCE_DELAY
,
error
({
graphQLErrors
})
{
...
...
ee/app/assets/javascripts/boards/stores/actions.js
View file @
198f25df
...
...
@@ -535,14 +535,15 @@ export default {
})
.
then
(({
data
})
=>
{
const
[
firstError
]
=
data
.
workspace
.
errors
||
[];
const
assignees
=
data
.
workspace
.
assignees
.
nodes
;
const
assignees
=
data
.
workspace
.
assignees
.
nodes
.
map
(({
user
})
=>
user
)
;
if
(
firstError
)
{
throw
new
Error
(
firstError
);
}
commit
(
types
.
RECEIVE_ASSIGNEES_SUCCESS
,
assignees
.
map
(({
user
})
=>
user
),
// User field is nullable and we only want to display non-null users
assignees
.
filter
((
u
)
=>
u
),
);
})
.
catch
((
e
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment