FIX: Allow none category if default is none (#15995)

Even if the site setting's default value is none by default, it did not
allow admins to select it again after it was changed.
This commit is contained in:
Bianca Nenciu 2022-02-21 18:15:55 +02:00 committed by GitHub
parent 5d6d3fb244
commit 953d36b788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@
value=value value=value
allowUncategorized=true allowUncategorized=true
onChange=(action (mut value)) onChange=(action (mut value))
options=(hash
none=(eq setting.default "")
)
}} }}
{{setting-validation-message message=validationMessage}} {{setting-validation-message message=validationMessage}}
<div class="desc">{{html-safe setting.description}}</div> <div class="desc">{{html-safe setting.description}}</div>