1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +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 0a00f63b54
commit 7c0bef7aa0

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