Fallback undefined recordDataChip record name to empty string (#11685)

# Introduction
Closes #11682 

This seems to always has been quite flaky but this latest
[update](f0de6d31b7 (diff-63704155b77d9690a87a1ebd9f364bab7e7bb12afed7cc5a5516561ec3798f29L20))
seems to made the name optional.

As previously `undefined` being transpiles to a string results in
`"undefined"` which not a good thing neither 🙃 but wouldn't throw before
This commit is contained in:
Paul Rastoin
2025-04-22 20:17:44 +02:00
committed by GitHub
parent cc29c25176
commit fba9ae6dfe

View File

@ -17,7 +17,7 @@ export const getLabelIdentifierFieldValue = (
}
if (isDefined(labelIdentifierFieldMetadataItem?.name)) {
return record[labelIdentifierFieldMetadataItem.name];
return record[labelIdentifierFieldMetadataItem.name] ?? '';
}
return '';