fix: isRequired handling

- add support for default value in fields
This commit is contained in:
18alantom
2023-09-20 23:33:48 -07:00
committed by Alan
parent 387688cebb
commit 316f052c53
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -150,5 +150,6 @@ export class CustomField extends Doc {
this.fieldtype === 'Select' || this.fieldtype === 'AutoComplete',
target: () => this.fieldtype === 'Link' || this.fieldtype === 'Table',
references: () => this.fieldtype === 'DynamicLink',
default: () => !!this.isRequired,
};
}