Fix HalRepresentationWithEmbedded type (#1793)

Fix HalRepresentationWithEmbedded type since _embedded can be null.

Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2021-09-02 15:47:15 +02:00
committed by GitHub
parent 0ba8300051
commit 43e1ea06c8
16 changed files with 108 additions and 106 deletions

View File

@@ -33,7 +33,7 @@ type Props = {
class ChangesetTags extends React.Component<Props> {
getTags = () => {
const { changeset } = this.props;
return changeset._embedded.tags || [];
return changeset._embedded?.tags || [];
};
render() {