Move call to URL search to onRendered

This commit is contained in:
John R. Supplee 2021-01-25 00:07:50 +02:00
parent 5b194285f5
commit 74ad7b9f8d

View file

@ -76,7 +76,9 @@ BlazeComponent.extendComponent({
this.myBoardNames.set(data);
}
});
},
onRendered() {
Meteor.subscribe('setting');
if (Session.get('globalQuery')) {
this.searchAllBoards(Session.get('globalQuery'));
@ -326,8 +328,6 @@ BlazeComponent.extendComponent({
const handle = subManager.subscribe('globalSearch', params);
Tracker.nonreactive(() => {
Tracker.autorun(() => {
// eslint-disable-next-line no-console
// console.log('ready:', handle.ready());
if (handle.ready()) {
this.searching.set(false);
this.hasResults.set(true);