Guard saveOrderTypes against missing businessId

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-10 20:11:54 -07:00
parent 30e192e738
commit b57cef8838

View file

@ -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 {