mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🔧 Draw the error row only if there's a operationError
This commit is contained in:
parent
5dfcfeaa5a
commit
55210e1f82
1 changed files with 7 additions and 3 deletions
|
@ -86,9 +86,13 @@ export function GroupCreateBox({viewSet}: GroupCreateBoxProps): JSX.Element | nu
|
|||
}}
|
||||
{...access}
|
||||
/>
|
||||
<Form.Row>
|
||||
<ErrorBox error={viewSet.operationError ?? undefined}/>
|
||||
</Form.Row>
|
||||
{
|
||||
viewSet.operationError ?
|
||||
<Form.Row>
|
||||
<ErrorBox error={viewSet.operationError ?? undefined}/>
|
||||
</Form.Row>
|
||||
: null
|
||||
}
|
||||
<Form.Row>
|
||||
<Form.Button onClick={doCreate}>
|
||||
Create
|
||||
|
|
Loading…
Reference in a new issue