From b981b8cc25a33887f36918eaf73e27f61e5b79fc Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 28 Jan 2025 06:38:40 +0100 Subject: [PATCH] fix webpage bug --- apxtri/models/Wwws.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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