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:
John Mizerek 2026-03-14 19:15:42 -07:00
parent 5fb7710344
commit dc3cdf98a0

View file

@ -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);