Skip to content

Commit c18308b

Browse files
committed
make sure "adjustedProperty" always exists
setting "adjustedProperty" to be the initial property makes sure that it exists even when a property doesn't have "dependency" or "required" fields - ref: #69
1 parent 83d1079 commit c18308b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/api/configurations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export const configureDynamicFormSchema = (defaultSchema) => {
262262

263263
Object.entries(defaultSchema.properties).forEach(prop => {
264264
const [key, value] = prop
265-
let adjustedProperty
265+
let adjustedProperty = prop
266266

267267
if (!removedProperties.includes(key)) {
268268
if (value.required) {

0 commit comments

Comments
 (0)