Guard saveOrderTypes against missing businessId
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30e192e738
commit
b57cef8838
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Reference in a new issue