1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-23 07:14:21 +00:00

🔧 Draw the error row only if there's a operationError

This commit is contained in:
Steffo 2021-10-11 18:30:58 +02:00
parent 5dfcfeaa5a
commit 55210e1f82
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -86,9 +86,13 @@ export function GroupCreateBox({viewSet}: GroupCreateBoxProps): JSX.Element | nu
}} }}
{...access} {...access}
/> />
<Form.Row> {
<ErrorBox error={viewSet.operationError ?? undefined}/> viewSet.operationError ?
</Form.Row> <Form.Row>
<ErrorBox error={viewSet.operationError ?? undefined}/>
</Form.Row>
: null
}
<Form.Row> <Form.Row>
<Form.Button onClick={doCreate}> <Form.Button onClick={doCreate}>
Create Create