Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions karavan-app/src/main/webui/src/ui/util/useFormUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function useFormUtil(formContext: UseFormReturn<any>) {
<Content className='text-field-prefix' component={ContentVariants.p}>{prefix}</Content>
</TextInputGroupMain>
</TextInputGroup>
{getHelper((errors as any)[fieldName])}
{getError((errors as any)[fieldName])}
</FormGroup>
)
}
Expand Down Expand Up @@ -262,7 +262,7 @@ export function useFormUtil(formContext: UseFormReturn<any>) {
</TextInputGroup>
)}
/>
{getHelper((errors as any)[fieldName])}
{getError((errors as any)[fieldName])}
</FormGroup>
)
}
Expand All @@ -287,7 +287,7 @@ export function useFormUtil(formContext: UseFormReturn<any>) {
<FormSelectOption key={index} value={option[0]} label={option[1]}/>
))}
</FormSelect>
{getHelper((errors as any)[fieldName])}
{getError((errors as any)[fieldName])}
</FormGroup>
)
}
Expand Down