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

Fix registering unamed settings

This commit is contained in:
Chocobozzz 2024-07-10 12:12:07 +02:00
parent 6d12f018cd
commit c5de5ef1d0
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 14 additions and 2 deletions

View file

@ -204,7 +204,8 @@ export class RegisterHelpers {
private buildRegisterSetting () {
return (options: RegisterServerSettingOptions) => {
this.settings = [
...this.settings.filter((s) => s.name !== options.name),
...this.settings.filter(s => !s.name || s.name !== options.name),
options
]
}