Skip to content

Commit

Permalink
Merge branch 'master' into minor
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Sep 12, 2023
2 parents 059283c + 7e2c17a commit 4147797
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export function getDefaultValue(type: CustomFieldType, isNullable?: boolean) {
case 'string':
case 'text':
case 'localeText':
return '';
return isNullable ? null : '';
case 'boolean':
return false;
return isNullable ? null : false;
case 'float':
case 'int':
return isNullable ? null : 0;
Expand Down

0 comments on commit 4147797

Please sign in to comment.