mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Reset filters when loading query params
This commit is contained in:
parent
379387f56f
commit
013d413841
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ export class VideoFilters {
|
||||||
load (obj: Partial<AttributesOnly<VideoFilters>>, customizedByUser?: boolean) {
|
load (obj: Partial<AttributesOnly<VideoFilters>>, customizedByUser?: boolean) {
|
||||||
debugLogger('Loading object in video filters', { obj, customizedByUser })
|
debugLogger('Loading object in video filters', { obj, customizedByUser })
|
||||||
|
|
||||||
|
this.reset({ triggerChange: false })
|
||||||
|
|
||||||
if (customizedByUser) this.customizedByUser = customizedByUser
|
if (customizedByUser) this.customizedByUser = customizedByUser
|
||||||
|
|
||||||
if (obj.sort !== undefined) this.sort = obj.sort
|
if (obj.sort !== undefined) this.sort = obj.sort
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue