Commit 4ad907c4 authored by Simon Knox's avatar Simon Knox

don't add undefined assignee to issue.assignees

parent ea92682a
......@@ -52,10 +52,12 @@ export default {
project_id: this.selectedProject.id,
});
if (board) {
if (board.assignee) {
issue.assignees = [board.assignee];
issue.labels = _.sortBy(_.uniq([...labels, ...board.labels], label => label.id),
'title');
}
if (board.labels.length > 0) {
issue.labels = _.uniq([...labels, ...board.labels], label => label.id);
}
eventHub.$emit(`scroll-board-list-${this.list.id}`);
......
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