From d0c5dea8794bb5e20adae115d279eeddb21173a5 Mon Sep 17 00:00:00 2001 From: "Zane J. Chua" Date: Sat, 2 Feb 2019 00:30:33 +0800 Subject: [PATCH] Minor fix for invoice item creation bug --- resources/assets/js/unicorn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/unicorn.js b/resources/assets/js/unicorn.js index c59182ec..2922737f 100644 --- a/resources/assets/js/unicorn.js +++ b/resources/assets/js/unicorn.js @@ -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",