Skip to content

Commit

Permalink
Fix FLOWrest-adapter check for existence of meta message object
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Tiele Westra authored and iperdomo committed Jul 17, 2013
1 parent 870b529 commit 12d81c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dashboard/app/js/lib/models/FLOWrest-adapter-v2-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DS.FLOWRESTAdapter = DS.RESTAdapter.extend({
this._super(store, type, json, root);
// only change metaControl info if there is actual meta info in the server response
metaObj = this.extractMeta(json);
if (metaObj && metaObj.message) {
if (metaObj && !Ember.none(metaObj.message)) {
if (type == FLOW.SurveyInstance) {
FLOW.metaControl.set('numSILoaded', this.extractMeta(json).num);
FLOW.metaControl.set('since', this.extractMeta(json).since);
Expand Down

0 comments on commit 12d81c0

Please sign in to comment.