mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 03:32:44 +08:00
Don't add filter q if not defined
Otherwise, the backend controller will think we are searching, not filtering, and fail to apply filters.
This commit is contained in:
parent
494633537e
commit
f9e8c51e76
|
@ -91,7 +91,9 @@ export default function() {
|
|||
params.filter.tag = this.params.tags;
|
||||
// TODO: replace this with a more robust system.
|
||||
const q = params.filter.q;
|
||||
params.filter.q = q ? `${q} tag:${this.params.tags}` : '';
|
||||
if (q) {
|
||||
params.filter.q = `${q} tag:${this.params.tags}`;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user