Skip to content

Commit

Permalink
fix: Ensure compatibility with Babel (fix bug introduced in #444)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Jun 21, 2024
1 parent a578735 commit c4e2396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const RawHelper = class {
if (!_.isPlainObject(data)) {
return false;
}
const type = data['@type'] ?? data.type;
const type = data['@type'] || data.type;
// This is a JSON-LD object with a @type
if (!_.isNil(type)) {
return false;
Expand Down

0 comments on commit c4e2396

Please sign in to comment.