Skip to content

Commit

Permalink
Handle null values
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 2, 2024
1 parent 274ee52 commit 92f6457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/PositionValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const PositionValue = ({ position, property, attribute }) => {
}
};

if (value === undefined) {
if (value === undefined || value === null) {
return '';
}

Expand Down

2 comments on commit 92f6457

@jcardus
Copy link
Contributor

@jcardus jcardus commented on 92f6457 Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hides the AddressValue component.

@tananaev
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed here.

Please sign in to comment.