Merge pull request #686 from mirumee/fix/attribute-crash

Fix crashing attribute value creation
This commit is contained in:
Dominik Żegleń 2020-09-03 11:29:39 +02:00 committed by GitHub
commit dda68cf6cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ const AttributeDetails: React.FC<AttributeDetailsProps> = ({ params }) => {
<AttributeValueDeleteDialog
attributeName={undefined}
open={params.action === "remove-value"}
name={getStringOrPlaceholder(values[id].name)}
name={getStringOrPlaceholder(values[id]?.name)}
confirmButtonState="default"
onClose={closeModal}
onConfirm={handleValueDelete}