Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucasau committed Nov 19, 2024
1 parent 69c803b commit 2767409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/js/lib/api/generateApiComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function prepareAttributeOrPropertyProps(
};

const pageHeading = $dl.siblings("h1").text();
if (id.endsWith(pageHeading) && pageHeading != "") {
if (pageHeading && id.endsWith(pageHeading)) {
$dl.siblings("h1").text(getLastPartFromFullIdentifier(id));
return {
...props,
Expand Down Expand Up @@ -279,7 +279,7 @@ function prepareFunctionProps(
};

const pageHeading = $dl.siblings("h1").text();
if (id.endsWith(pageHeading) && pageHeading != "") {
if (pageHeading && id.endsWith(pageHeading)) {
// Page is already dedicated to apiType; no heading needed
return {
...props,
Expand Down

0 comments on commit 2767409

Please sign in to comment.