Commit 904f2c22 authored by Phil Hughes's avatar Phil Hughes

Hide no milestone option when filtering milestone dropdown

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/300110
parent d5341588
...@@ -119,7 +119,7 @@ export default class MilestoneSelect { ...@@ -119,7 +119,7 @@ export default class MilestoneSelect {
title: __('Any milestone'), title: __('Any milestone'),
}); });
} }
if (showNo) { if (showNo && term.trim() === '') {
extraOptions.push({ extraOptions.push({
id: -1, id: -1,
name: __('No milestone'), name: __('No milestone'),
......
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