o.value === this.currentProjectSection) ||
- {}
- ).value
+ return this.sectionOptions.find(
+ option => option.value === this.currentProjectSection
+ )?.value
}
},
diff --git a/src/components/widgets/TextField.vue b/src/components/widgets/TextField.vue
index 8981a57350..9087c1478d 100644
--- a/src/components/widgets/TextField.vue
+++ b/src/components/widgets/TextField.vue
@@ -23,6 +23,7 @@
:maxlength="maxlength"
:min="min"
:max="max || undefined"
+ :required="required"
:step="step || 'any'"
:readonly="readonly"
@input="updateValue()"
@@ -100,6 +101,10 @@ export default {
readonly: {
default: false,
type: Boolean
+ },
+ required: {
+ default: false,
+ type: Boolean
}
},