Skip to content

Commit

Permalink
Browser compat may have a title ID too
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Aug 5, 2024
1 parent 04f83f6 commit f4aed75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/create-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ graph.forEachNode((node) => {
report(node, "Duplicate specifications");
}
node.data.specifications = part.value.specifications;
ids.push(part.value.id);
continue;
case "browser_compatibility":
// We use metadata.browserCompat
if (!node.data.metadata.browserCompat?.includes(part.value.query)) {
if (!node.data.metadata.browserCompat?.includes(part.value.query))
report(node, "Bad browser compat query", part.value.query);
}
ids.push(part.value.id);
continue;
case "prose":
break;
Expand Down

0 comments on commit f4aed75

Please sign in to comment.