diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 3f85e90..e07a7e7 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,6 +1,6 @@ { - "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=09de9d4c63b5e0125c97", - "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=fafb3d0743bc753d4653", - "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=250d91b530c33e1e6c40", - "/js/vue/User/app.js": "/js/vue/User/app.js?id=c0c46572f483bd5de29c" + "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=f7a4211f63d8c9b0e866", + "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=16ec31ea2fe142f759a2", + "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=a34424bae779351e8015", + "/js/vue/User/app.js": "/js/vue/User/app.js?id=9b9201bf682c177f6a9c" } diff --git a/resources/js/Global/utils/common/ProcessTreeArray.js b/resources/js/Global/utils/common/ProcessTreeArray.js index 10007fb..1c39266 100644 --- a/resources/js/Global/utils/common/ProcessTreeArray.js +++ b/resources/js/Global/utils/common/ProcessTreeArray.js @@ -216,12 +216,18 @@ const insertTreeArray = ( if (hierarchy.hasOwnProperty(key)) { if (key == 0) { if (hierarchy.length - 1 == key) { + if (typeof array[hierarchy[key]]["children"] != 'array') { + array[hierarchy[key]]["children"] = []; + } array[hierarchy[key]]["children"].push(store); } else { array = array[hierarchy[key]]; } } else { if (hierarchy.length - 1 == key) { + if (typeof array["children"][hierarchy[key]]["children"] != 'array') { + array["children"][hierarchy[key]]["children"] = []; + } array["children"][hierarchy[key]]["children"].push(store); } else { array = array["children"][hierarchy[key]];