Missing active checkmark indicator when filtering Issues by "No Label"

Summary

When filtering Issues by No Label, there is not a checkmark next to the No Label item in the dropdown when active.

Steps to reproduce

  1. Go to Issues page
  2. Filter Issues by No Label
  3. Click on the Labels dropdown
  4. Notice
  • No Label item is not checked
  • Items are still being filtered correctly

Expected behavior

When the No Label item is selected, it should have the active checkmark indicator next to it.

Actual behavior

When the No Label item is selected, it has no indicator that it is active.

Relevant logs and/or screenshots

2017-01-01_14.28.37

Possible fixes

Check params[:label_name] for valid selectable options, such as No Label, that are not returned from the database.