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:
agagancarczyk 2022-03-31 15:23:28 +01:00 committed by GitHub
parent 4c70064bd4
commit c0981a1bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,9 +129,10 @@ export default function NewAttributeSettings() {
selector,
required,
...values
} = config.attributes!.find(
} =
config.attributes!.find(
(attribute) => attribute.name === attributeName
)!;
) || {};
convertToFormValues(values, form.setValue);
Object.entries(
flatten({ permissions, selector, required }, { safe: true })