We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b84354c + 2d1366c commit 4c0c63aCopy full SHA for 4c0c63a
frontend/packages/pydantic-forms/src/core/hooks/usePydanticFormParser.tsx
@@ -33,7 +33,8 @@ const translateLabel = (
33
label?: string,
34
formLabels?: Record<string, string>,
35
): string | undefined => {
36
- return formLabels && formLabels[propertyId]
+ const isString = typeof formLabels?.[propertyId] === 'string';
37
+ return formLabels && formLabels[propertyId] && isString
38
? formLabels[propertyId].toString()
39
: label;
40
};
0 commit comments