Commit 6cc3d6e9 authored by Simon Knox's avatar Simon Knox

handle null and NaN id

parent b66257de
......@@ -39,11 +39,11 @@ class BoardsStoreEE {
};
let milestoneTitle = this.store.boardConfig.milestoneTitle;
if (this.store.boardConfig.milestoneId !== -1) {
if (this.store.boardConfig.milestoneId === 0) {
milestoneTitle = 'No+Milestone';
}
updateFilterPath('milestone_title', encodeURIComponent(milestoneTitle));
if (this.store.boardConfig.milestoneId === 0) {
milestoneTitle = 'No+Milestone';
}
if (milestoneTitle) {
updateFilterPath('milestone_title', milestoneTitle);
this.store.cantEdit.push('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