From e0c873cb4c2b6ca25ff40a8396a17e1c6063a3fe Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Sun, 28 Jun 2026 17:38:28 -0500 Subject: [PATCH] fix: define CONFIG and ENDPOINTS in bot-config page for addFlowCard addFlowCard() referenced CONFIG.menus, CONFIG.flows and ENDPOINTS but those variables were only defined in the conversation-tree page (a different route). On /admin/bot-config the access threw ReferenceError, aborting the function before insertAdjacentHTML ran, so no card appeared. Compute botConfigJson/botEndpointsJson from already-loaded PHP data and emit them as const CONFIG / ENDPOINTS at the top of the page's