DEV: Add falsy check for default value
This commit is contained in:
parent
4d32635c69
commit
74ccc12462
|
@ -5,7 +5,10 @@ export default class BaseField extends Component {
|
|||
constructor() {
|
||||
super(...arguments);
|
||||
|
||||
if (this.args.field.extra?.default_value) {
|
||||
if (
|
||||
this.args.field.extra &&
|
||||
Object.keys(this.args.field.extra).includes("default_value")
|
||||
) {
|
||||
this.args.field.metadata.value = this.args.field.extra.default_value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue