The if-statement in UserLink won't be executed at the moment if the entityRef is actually 'anonymous' as it will then always crash when executing useEntityPresentation.
A possible fix could be to move the check to the AuthorLink component as this PR suggests.
Not sure if it would need to be added in more places, like UpdatedByLink for example.
Possible fix for issue: https://github.com/drodil/backstage-plugin-qeta/issues/152.
The if-statement in UserLink won't be executed at the moment if the entityRef is actually 'anonymous' as it will then always crash when executing
useEntityPresentation
.A possible fix could be to move the check to the
AuthorLink
component as this PR suggests. Not sure if it would need to be added in more places, likeUpdatedByLink
for example.