From 8e14392c3238f60b146084c27136f7d003ceb8f2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Dec 2024 15:13:37 +0100 Subject: [PATCH] Fix category update --- .../config/edit-custom-config/edit-custom-config.component.scss | 1 + .../config/edit-custom-config/edit-custom-config.component.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss index f2884ad29..a14aa30cb 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss @@ -56,6 +56,7 @@ input[type=checkbox] { @include peertube-select-container($form-base-input-width); } +my-select-checkbox, my-select-options, my-select-custom-value { display: block; diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 482a66516..492c56842 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts @@ -482,7 +482,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { ]).subscribe({ next: ([ languages, categories ]) => { this.languageItems = languages.map(l => ({ label: l.label, id: l.id })) - this.categoryItems = categories.map(l => ({ label: l.label, id: l.id + '' })) + this.categoryItems = categories.map(l => ({ label: l.label, id: l.id })) }, error: err => this.notifier.error(err.message)