actually select the first palette on first run
This commit is contained in:
parent
fdd869653a
commit
e2d5d33ac7
|
@ -161,6 +161,9 @@ $(document).ready(function() {
|
||||||
if (_.find(bitsyData.palettes, {'id': palette.id})) {
|
if (_.find(bitsyData.palettes, {'id': palette.id})) {
|
||||||
// user has already selected a palette, leave it be
|
// user has already selected a palette, leave it be
|
||||||
|
|
||||||
|
// in case this is the first run:
|
||||||
|
palette = _.find(bitsyData.palettes, {'id': palette.id})
|
||||||
|
|
||||||
// if we just set the palette to the newly imported palette with the same ID,
|
// if we just set the palette to the newly imported palette with the same ID,
|
||||||
// we will lose any changes the user has made to the palettes
|
// we will lose any changes the user has made to the palettes
|
||||||
// is this a big issue considering that the palettes cannot be currently saved anyway?
|
// is this a big issue considering that the palettes cannot be currently saved anyway?
|
||||||
|
|
Loading…
Reference in New Issue