Skip to content

Commit

Permalink
Fix bug with publish selector when published_to is NULL
Browse files Browse the repository at this point in the history
Published selector always expects an array, this breaks when published_to
is an array
  • Loading branch information
rjmackay committed Jul 12, 2016
1 parent 242c45a commit 5164487
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/common/services/endpoints/post-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function (
if (_.isArray(data.values)) {
data.values = _.object(data.values);
}
if (!_.isArray(data.published_to)) {
data.published_to = [];
}
return data;
}
},
Expand Down

0 comments on commit 5164487

Please sign in to comment.