Skip to content

Commit dab0dcc

Browse files
authored
Merge pull request #101 from workfloworchestrator/1936-empty-results
1936 empty results
2 parents 6898f69 + 4c6c076 commit dab0dcc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'pydantic-forms': patch
3+
---
4+
5+
Prevents uncontrolled elements from being added to formstate

frontend/packages/pydantic-forms/src/core/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ export const getPydanticFormComponents = (
403403
properties: Properties,
404404
componentMatcher: PydanticFormsContextConfig['componentMatcher'],
405405
): PydanticFormComponents => {
406-
const components: PydanticFormComponents = Object.entries(properties).map(
407-
([, pydanticFormField]) => {
406+
const components: PydanticFormComponents = Object.values(properties).map(
407+
(pydanticFormField) => {
408408
return fieldToComponentMatcher(pydanticFormField, componentMatcher);
409409
},
410410
);

0 commit comments

Comments
 (0)