Skip to content

Commit

Permalink
fix: serialize empty labels as empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaiir committed Aug 3, 2023
1 parent 40e4a12 commit 3a700de
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Label(props) {
};

const setValue = (value) => {
return editField(field, path, value);
return editField(field, path, value || '');
};

return FeelTemplatingEntry({
Expand Down Expand Up @@ -107,7 +107,7 @@ function DateLabel(props) {
};

const setValue = (value) => {
return editField(field, path, value);
return editField(field, path, value || '');
};

return FeelTemplatingEntry({
Expand Down Expand Up @@ -140,7 +140,7 @@ function TimeLabel(props) {
};

const setValue = (value) => {
return editField(field, path, value);
return editField(field, path, value || '');
};

return FeelTemplatingEntry({
Expand Down

0 comments on commit 3a700de

Please sign in to comment.