actually select the first palette on first run

This commit is contained in:
synth-ruiner 2017-12-27 20:44:16 +00:00
parent fdd869653a
commit e2d5d33ac7
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ $(document).ready(function() {
if (_.find(bitsyData.palettes, {'id': palette.id})) {
// 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,
// 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?