Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Don't uncast when plucked data doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbasta authored and cvan committed Sep 3, 2013
1 parent 604003c commit a8c570c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hearth/media/js/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ define('builder',
if (plucked) {
resp = resp[signature.pluck];
}
if (!resp) {
return;
}
if (Array.isArray(resp)) {
for (var i = 0; i < resp.length; i++) {
resp[i] = uncaster(resp[i]);
Expand Down

0 comments on commit a8c570c

Please sign in to comment.