Fix random sort not changing seed (#411)

This commit is contained in:
WithoutPants 2020-03-21 08:07:46 +11:00 committed by GitHub
parent 9dacad70a1
commit 5aa6dec8dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -310,7 +310,7 @@ export class ListFilterModel {
q: this.searchTerm,
page: this.currentPage,
per_page: this.itemsPerPage,
sort: this.sortBy,
sort: this.getSortBy(),
direction: this.sortDirection
};
}

View file

@ -304,7 +304,7 @@ export class ListFilterModel {
q: this.searchTerm,
page: this.currentPage,
per_page: this.itemsPerPage,
sort: this.sortBy,
sort: this.getSortBy(),
direction: this.sortDirection === "asc" ? SortDirectionEnum.Asc : SortDirectionEnum.Desc,
};
}