Commit 52e37496 authored by Simon Knox's avatar Simon Knox

fix initial display when No Milestone selected

parent 5025d35e
......@@ -53,6 +53,7 @@ export default {
} else if (milestone.title === NO_MILESTONE) {
id = 0;
}
this.board.milestone_id = id;
this.board.milestone = {
...milestone,
id,
......
......@@ -16,7 +16,9 @@ class BoardsStoreEE {
name: '',
labels: [],
milestone: {},
milestone_id: undefined,
assignee: {},
assignee_id: undefined,
weight: null,
};
this.store.updateBoardConfig = this.updateBoardConfig;
......@@ -25,9 +27,11 @@ class BoardsStoreEE {
updateBoardConfig(board = {}) {
this.boardConfig.id = board.id;
this.boardConfig.name = board.name;
this.boardConfig.milestone_id = board.milestone_id;
this.boardConfig.milestone = board.milestone;
this.boardConfig.labels = board.labels || [];
this.boardConfig.assignee = board.assignee || {};
this.boardConfig.assignee_id = board.assignee_id;
this.boardConfig.weight = board.weight;
}
......
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