remove frontend default sort from discussion search state
This commit is contained in:
parent
bce3258325
commit
bf90e3279e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -17,11 +17,6 @@ export default function extendDiscussionState() {
|
||||||
...params.page,
|
...params.page,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Default to latest sort when searching without an explicit sort parameter.
|
|
||||||
// Matches the backend default and keeps the dropdown label in sync.
|
|
||||||
if (!params.sort) {
|
|
||||||
params.sort = '-lastPostedAt';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Array.isArray(params.include)) {
|
if (Array.isArray(params.include)) {
|
||||||
params.include = params.include.join(',');
|
params.include = params.include.join(',');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue