client/posts: make prevQuery a const
This commit is contained in:
parent
3f89fcccd0
commit
3d1d3e80cd
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class PostsHeaderView extends events.EventTarget {
|
|||
let parameters = {query: this._queryInputNode.value};
|
||||
|
||||
// convert falsy values to an empty string "" so that we can correctly compare with the current query
|
||||
var prevQuery = this._ctx.parameters.query ? this._ctx.parameters.query : "";
|
||||
const prevQuery = this._ctx.parameters.query ? this._ctx.parameters.query : "";
|
||||
parameters.offset = parameters.query === prevQuery ? this._ctx.parameters.offset : 0;
|
||||
if (this._bulkTagEditor && this._bulkTagEditor.opened) {
|
||||
parameters.tag = this._bulkTagEditor.value;
|
||||
|
|
Reference in a new issue