Fix board selector to pick the milestone id from the milestone object

parent 01e0042c
......@@ -96,7 +96,7 @@ require('./board_new_form');
},
updateMilestoneFilterDropdown() {
const $milestoneDropdown = $('.dropdown-menu-milestone');
const hideElements = this.board.milestone_id === null || this.board.milestone_id === -1;
const hideElements = this.board.milestone === null || this.board.milestone.id === -1;
$milestoneDropdown.find('.dropdown-input, .dropdown-footer-list')
.toggle(hideElements);
......
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