Commit 8c36d490 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'ss/fix-milestone-dropdown-error' into 'master'

Resolve no search result click causing issue

See merge request gitlab-org/gitlab!32698
parents 43a1ed9c efb7d43d
...@@ -130,10 +130,13 @@ export default class MilestoneSelect { ...@@ -130,10 +130,13 @@ export default class MilestoneSelect {
fieldName: $dropdown.data('fieldName'), fieldName: $dropdown.data('fieldName'),
text: milestone => escape(milestone.title), text: milestone => escape(milestone.title),
id: milestone => { id: milestone => {
if (!useId && !$dropdown.is('.js-issuable-form-dropdown')) { if (milestone !== undefined) {
return milestone.name; if (!useId && !$dropdown.is('.js-issuable-form-dropdown')) {
return milestone.name;
}
return milestone.id;
} }
return milestone.id;
}, },
hidden: () => { hidden: () => {
$selectBox.hide(); $selectBox.hide();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment