diff --git a/models/lists.js b/models/lists.js index 49b456f2a..29da16ea1 100644 --- a/models/lists.js +++ b/models/lists.js @@ -146,7 +146,7 @@ Lists.attachSchema( */ type: String, optional: true, - // silver is the default, so it is left out + // silver is the default allowedValues: ALLOWED_COLORS, }, type: { @@ -338,9 +338,6 @@ Lists.mutations({ }, setColor(newColor) { - if (newColor === 'silver') { - newColor = null; - } return { $set: { color: newColor, diff --git a/models/swimlanes.js b/models/swimlanes.js index 7c8cac595..c06395a31 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -70,7 +70,7 @@ Swimlanes.attachSchema( */ type: String, optional: true, - // silver is the default, so it is left out + // silver is the default allowedValues: ALLOWED_COLORS, }, updatedAt: { @@ -293,9 +293,6 @@ Swimlanes.mutations({ }, setColor(newColor) { - if (newColor === 'silver') { - newColor = null; - } return { $set: { color: newColor,