diff --git a/apxtri/models/Wwws.js b/apxtri/models/Wwws.js index 036136e..c246caf 100644 --- a/apxtri/models/Wwws.js +++ b/apxtri/models/Wwws.js @@ -43,12 +43,12 @@ Wwws.getwco = (wconame, ctx) => { const webpage = fs.readJSONSync(webconf); // check that webconf for tailwindcsscontent property exist for this wco request const pathtocheckfortw=[`../adminapi/objects/wco/${wconame}/*.{html,js,mustache}`,`../${ctx.tribe}/objects/wwws/${ctx.xapp}/src/**/*.{html,js,mustache}`] - if (!webconf.tailwindcsscontent){ - webconf.tailwindcsscontent=[] + if (!webpage.tailwindcsscontent){ + webpage.tailwindcsscontent=[] } pathtocheckfortw.forEach(tw=>{ - if (!webconf.tailwindcsscontent.includes(tw)){ - webconf.tailwindcsscontent.push(tw) + if (!webpage.tailwindcsscontent.includes(tw)){ + webpage.tailwindcsscontent.push(tw) } }) // check that all tpl for this compoent are well in pages tpl object