2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

Don't render hidden fields

This commit is contained in:
Oliver Walters
2023-07-27 20:53:52 +10:00
parent a3b6cb36a0
commit 542aa19c28
2 changed files with 15 additions and 12 deletions

View File

@ -210,7 +210,9 @@ export function ApiForm(props: ApiFormProps) {
{canRender && (
<ScrollArea>
<Stack spacing="md">
{props.fields.map((field) => (
{props.fields
.filter((field) => !field.hidden)
.map((field) => (
<ApiFormField
key={field.name}
field={field}

View File

@ -81,7 +81,8 @@ export default function Home() {
name: 'name'
},
{
name: 'description'
name: 'description',
hidden: true
},
{
name: 'website',