Fix crashing attribute value creation

This commit is contained in:
dominik-zeglen 2020-09-02 11:42:22 +02:00
parent b1791b6277
commit a6ce67b6c9

View file

@ -166,7 +166,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}