Updates to make Menu and lists work together again.

This commit is contained in:
Brian McGonagill 2025-07-30 07:11:50 -05:00
parent b5d490c052
commit 9223f21e06
7 changed files with 32 additions and 27 deletions

View file

@ -31,14 +31,12 @@ Template.mainMenuTbl.events({
} else {
// console.log("menuId is: " + menuId);
const addUserLast = async() => {
Session.set("menuId", menuId);
let result = await Meteor.callAsync('add.userLast', "Menu", menuId);
if (!result) {
// console.log(" ERROR writing last menu viewed by user to db.");
} else {
Session.set("menuId", menuId);
Meteor.setTimeout(function() {
FlowRouter.go('/menuitems');
}, 100);
FlowRouter.go('/menuitems');
}
}
addUserLast();