mirror of
https://github.com/flarum/core.git
synced 2025-08-09 09:57:06 +02: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:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user