Commit 73fb0354 authored by Simon Knox's avatar Simon Knox

include required label_ids param

parent 1c4c0342
...@@ -31,14 +31,13 @@ class BoardService { ...@@ -31,14 +31,13 @@ class BoardService {
createBoard (board) { createBoard (board) {
board.board = board.board || {}; board.board = board.board || {};
board.board.label_ids = (board.labels || []).map(b => b.id);
if (board.labels && board.labels.length > 0) {
board.board.label_ids = board.labels.map(b => b.id);
board.board.milestone_id = board.milestone_id;
}
if (board.assignee) { if (board.assignee) {
board.board.assignee_id = board.assignee.id; board.board.assignee_id = board.assignee.id;
} }
board.board.milestone_id = board.milestone_id;
board.board.weight = board.weight; board.board.weight = board.weight;
if (board.id) { if (board.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