mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Making it so that Menu and Lists load from db when refreshed.
This commit is contained in:
parent
3ad8fab67b
commit
2f3f82477a
7 changed files with 47 additions and 19 deletions
|
|
@ -34,7 +34,13 @@ Template.listItemsForm.helpers({
|
|||
if (Session.get("listId")) {
|
||||
selListId = Session.get("listId");
|
||||
} else {
|
||||
selListId = UserLast.findOne({ view: "List", userId: Meteor.userId() }).viewId;
|
||||
selListInfo = UserLast.findOne({ view: "List" });
|
||||
if (selListInfo) {
|
||||
selListId = selListInfo.viewId;
|
||||
Session.set("listId", selListId);
|
||||
} else {
|
||||
console.log("not finding any value for viewId.");
|
||||
}
|
||||
}
|
||||
let listInfo = Lists.findOne({ _id: selListId });
|
||||
if (listInfo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue