Skip to content

Commit b746f78

Browse files
fix(dashboard): Set secret flag when mapping struct fields to field configs
The struct-field-to-custom-field-config mapping did not set `secret`, which became a required property once the custom-field config type started selecting it. Struct sub-fields cannot be secret, so it is set to false. Relates to #2648
1 parent 0afbc8f commit b746f78

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/dashboard/src/lib/framework/form-engine/form-schema-tools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function mapGraphQLCustomFieldToConfig(field: StructField) {
3737
readonly: false,
3838
requiresPermission: [],
3939
nullable: true, // Default to true since GraphQL fields are nullable by default
40+
secret: false, // struct sub-fields cannot be secret
4041
};
4142

4243
switch (field.__typename) {

0 commit comments

Comments
 (0)