Skip to content

Commit

Permalink
don't do an inventory lookup if the form doesn't have a lexInvLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
balmas committed Nov 6, 2014
1 parent a353342 commit eaf3f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/arethusa.morph/morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ angular.module('arethusa.morph').service('morph', [
}

function getDataFromInventory(form) {
if (inventory) {
if (inventory && form.lexInvLocation) {
var urn = form.lexInvLocation.urn;
inventory.getData(urn, form);
}
Expand Down

0 comments on commit eaf3f3a

Please sign in to comment.