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:
parent
6d12f018cd
commit
c5de5ef1d0
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue