Merge pull request #3478 from jrsupplee/fix-1

Move call to URL search to onRendered
This commit is contained in:
Lauri Ojansivu 2021-01-25 13:43:09 +02:00 committed by GitHub
commit e0c6f64788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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