Skip to content

Commit

Permalink
Minor fix for invoice item creation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zanechua committed Feb 1, 2019
1 parent 93663e2 commit d0c5dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/js/unicorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Unicorn {
}

static retrieveItemTemplate(baseEndpoint, itemTemplateId, element, callback) {
if (typeof itemTemplateId !== typeof undefined && itemTemplateId !== false) {
if (typeof itemTemplateId !== typeof undefined && itemTemplateId !== false && itemTemplateId !== 'undefined') {
$.ajax({
type: "GET",
url: baseEndpoint + "/itemtemplate/" + itemTemplateId + "/retrieve",
Expand Down

0 comments on commit d0c5dea

Please sign in to comment.