1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Reset filters when loading query params

This commit is contained in:
Chocobozzz 2025-06-27 09:17:12 +02:00
parent 379387f56f
commit 013d413841
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -147,6 +147,8 @@ export class VideoFilters {
load (obj: Partial<AttributesOnly<VideoFilters>>, customizedByUser?: boolean) {
debugLogger('Loading object in video filters', { obj, customizedByUser })
this.reset({ triggerChange: false })
if (customizedByUser) this.customizedByUser = customizedByUser
if (obj.sort !== undefined) this.sort = obj.sort