Skip to content

Commit

Permalink
slight improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehesluke committed Feb 22, 2024
1 parent 7127685 commit 2d3fd0b
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 2d3fd0b

Please sign in to comment.