Debug menus array + preserve menuName in category confirmation
- Add console.log to showFinalStep for menus debugging - Preserve menuName property when rebuilding categories in confirmCategories Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5fb7710344
commit
dc3cdf98a0
1 changed files with 9 additions and 0 deletions
|
|
@ -2720,6 +2720,10 @@
|
|||
if (origCat?.parentCategoryName) {
|
||||
catObj.parentCategoryName = origCat.parentCategoryName;
|
||||
}
|
||||
// Preserve menuName for multi-menu mapping
|
||||
if (origCat?.menuName) {
|
||||
catObj.menuName = origCat.menuName;
|
||||
}
|
||||
updatedCategories.push(catObj);
|
||||
}
|
||||
});
|
||||
|
|
@ -3278,6 +3282,11 @@
|
|||
function showFinalStep() {
|
||||
updateProgress(6);
|
||||
|
||||
console.log('=== showFinalStep DEBUG ===');
|
||||
console.log('config.extractedData.menus:', config.extractedData.menus);
|
||||
console.log('config.extractedData keys:', Object.keys(config.extractedData));
|
||||
console.log('menus length:', (config.extractedData.menus || []).length);
|
||||
|
||||
const { business, categories, modifiers, items } = config.extractedData;
|
||||
|
||||
const topCats = categories.filter(c => !c.parentCategoryName);
|
||||
|
|
|
|||
Reference in a new issue