Skip to content

Commit 46f1aa8

Browse files
committed
added the error to all fields in state manager if any are empty
1 parent 2557dee commit 46f1aa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/components/StateManagement/CreateTab/components/StatePropsPanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
201201
label="initial value"
202202
variant="outlined"
203203
value={inputValue}
204+
error={errorStatus}
204205
onChange={(e) => setInputValue(e.target.value)}
205206
className={
206207
isThemeLight
@@ -215,6 +216,7 @@ const StatePropsPanel = ({ isThemeLight, data }): JSX.Element => {
215216
? `${classes.formControl} ${classes.lightThemeFontColor}`
216217
: `${classes.formControl} ${classes.darkThemeFontColor}`
217218
}
219+
error={errorStatus}
218220
>
219221
<InputLabel
220222
id="select-required-label"

0 commit comments

Comments
 (0)