fixed cannot destructure property error (#2377)
* fixed cannot destructure property error * fix Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
4c70064bd4
commit
c0981a1bae
1 changed files with 4 additions and 3 deletions
|
@ -129,9 +129,10 @@ export default function NewAttributeSettings() {
|
||||||
selector,
|
selector,
|
||||||
required,
|
required,
|
||||||
...values
|
...values
|
||||||
} = config.attributes!.find(
|
} =
|
||||||
|
config.attributes!.find(
|
||||||
(attribute) => attribute.name === attributeName
|
(attribute) => attribute.name === attributeName
|
||||||
)!;
|
) || {};
|
||||||
convertToFormValues(values, form.setValue);
|
convertToFormValues(values, form.setValue);
|
||||||
Object.entries(
|
Object.entries(
|
||||||
flatten({ permissions, selector, required }, { safe: true })
|
flatten({ permissions, selector, required }, { safe: true })
|
||||||
|
|
Loading…
Reference in a new issue