Commit efb7d43d authored by Scott Stern's avatar Scott Stern Committed by Andrew Fontaine

Resolve no search result click causing issue

parent 7e369ce4
...@@ -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