Skip to content

Commit

Permalink
rights: fix serialize condition for controlled license
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and slint committed Dec 17, 2024
1 parent 834976d commit de2a0e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class RightsVocabularyField extends VocabularyField {
let serializedValue = null;
const _serialize = (value) => {
let clonedValue = _cloneDeep(value);
if ("id" in value) {
if ("id" in value && value.id != null) {
return { id: value.id };
} else {
this.localeFields.forEach((field) => {
Expand Down

0 comments on commit de2a0e4

Please sign in to comment.