Commit bfe1ec5d authored by Simon Knox's avatar Simon Knox

sending empty array for labelIds doesn't clear labels

parent 894b5e0f
...@@ -32,6 +32,10 @@ class BoardService { ...@@ -32,6 +32,10 @@ class BoardService {
createBoard (board) { createBoard (board) {
board.label_ids = (board.labels || []).map(b => b.id); board.label_ids = (board.labels || []).map(b => b.id);
if (board.label_ids.length === 0) {
board.label_ids = [''];
}
if (board.assignee) { if (board.assignee) {
board.assignee_id = board.assignee.id; board.assignee_id = board.assignee.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