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:
parent
0a00f63b54
commit
7c0bef7aa0
1 changed files with 7 additions and 3 deletions
|
@ -86,9 +86,13 @@ export function GroupCreateBox({viewSet}: GroupCreateBoxProps): JSX.Element | nu
|
||||||
}}
|
}}
|
||||||
{...access}
|
{...access}
|
||||||
/>
|
/>
|
||||||
|
{
|
||||||
|
viewSet.operationError ?
|
||||||
<Form.Row>
|
<Form.Row>
|
||||||
<ErrorBox error={viewSet.operationError ?? undefined}/>
|
<ErrorBox error={viewSet.operationError ?? undefined}/>
|
||||||
</Form.Row>
|
</Form.Row>
|
||||||
|
: null
|
||||||
|
}
|
||||||
<Form.Row>
|
<Form.Row>
|
||||||
<Form.Button onClick={doCreate}>
|
<Form.Button onClick={doCreate}>
|
||||||
Create
|
Create
|
||||||
|
|
Loading…
Reference in a new issue