Skip to content

Commit

Permalink
fix(web): hasOwn support in safari
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Mar 15, 2023
1 parent 88fe0bc commit e17769d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/src/components/basic/URLParamsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ class URLParamsProvider extends Component {
// TODO: support for NestedList
if (value.location) return value;
if (value.category) return value;
if (Object.hasOwn(value, 'mainLabel') || Object.hasOwn(value, 'secondaryLabel')) {
if (
Object.prototype.hasOwnProperty.call(value, 'mainLabel')
|| Object.prototype.hasOwnProperty.call(value, 'secondaryLabel')
) {
return value;
}
return value.label || value.key || null;
Expand Down

0 comments on commit e17769d

Please sign in to comment.