first cut (untested)
This commit is contained in:
parent
bcd1c7e099
commit
ebdac4ee50
10 changed files with 171 additions and 14 deletions
|
@ -57,7 +57,7 @@ module.exports = React.createClass({
|
|||
data.primary_color = scheme.primary_color;
|
||||
data.secondary_color = scheme.secondary_color;
|
||||
data.index = this._getColorIndex(data);
|
||||
|
||||
|
||||
if (data.index === -1) {
|
||||
// append the unrecognised colours to our palette
|
||||
data.index = ROOM_COLORS.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue