Skip to content

Commit

Permalink
fix: do not save "null" instead of null for showLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Feb 7, 2025
1 parent 6793a6b commit d76647f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion umap/static/umap/js/modules/form/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ Fields.NullableChoices = class extends Fields.TernaryChoices {
this.properties.choices || [
[true, translate('always')],
[false, translate('never')],
['null', translate('hidden')],
[null, translate('hidden')],
]
)
}
Expand Down
2 changes: 1 addition & 1 deletion umap/static/umap/js/modules/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export const SCHEMA = {
choices: [
[true, translate('always')],
[false, translate('never')],
['null', translate('on hover')],
[null, translate('on hover')],
],
},
slideshow: {
Expand Down

0 comments on commit d76647f

Please sign in to comment.