From b57cef8838d35cb40857224a1ac1f04527c90a7b Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Tue, 10 Mar 2026 20:11:54 -0700 Subject: [PATCH] Guard saveOrderTypes against missing businessId Co-Authored-By: Claude Opus 4.6 --- portal/portal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/portal/portal.js b/portal/portal.js index 2da5e07..993da2b 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -911,6 +911,7 @@ const Portal = { }, async saveOrderTypes() { + if (!this.config.businessId) return; const types = ['1']; // Dine-in always enabled if (document.getElementById('orderTypeTakeaway').checked) types.push('2'); try {