Skip to content

Commit 8d79bb0

Browse files
ahus1pedroigor
authored andcommitted
Show if integer is required
Closes #43202 Signed-off-by: Alexander Schwartz <[email protected]>
1 parent 94a4e06 commit 8d79bb0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/apps/admin-ui/src/components/dynamic/IntComponent.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ export const IntComponent = ({
1919
label={t(label!)}
2020
labelIcon={t(helpText!)}
2121
data-testid={name}
22+
rules={{
23+
required: {
24+
value: !!props.required,
25+
message: t("required"),
26+
},
27+
}}
2228
{...props}
2329
/>
2430
);

0 commit comments

Comments
 (0)