zet-lib 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zGeneratorRouter.js +1 -1
- package/package.json +1 -1
package/lib/zGeneratorRouter.js
CHANGED
|
@@ -450,7 +450,7 @@ const generate = async (req, res) => {
|
|
|
450
450
|
let compilesJS = ['createjs.ejs', 'updatejs.ejs', 'importjs.ejs'];
|
|
451
451
|
|
|
452
452
|
let resultJSON = Object.prototype.hasOwnProperty.call(result,'json') ? result.json : {};
|
|
453
|
-
if(resultJSON.hasOwnProperty('dummy')) {
|
|
453
|
+
if(resultJSON && resultJSON.hasOwnProperty('dummy')) {
|
|
454
454
|
dummy = resultJSON.dummy;
|
|
455
455
|
}
|
|
456
456
|
if(!dummy) {
|