Skip to content

Commit

Permalink
Fix undefined error on docs page
Browse files Browse the repository at this point in the history
Refs #2205
  • Loading branch information
kimrutherford committed Oct 14, 2024
1 parent 4e10def commit da02d60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/documentation/docs/docs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export class DocsComponent implements OnInit, OnDestroy, AfterViewInit {
this.addAltmetrics();
setTimeout(() => {
// need to wait until DOM is updated
this.window.__dimensions_embed.addBadges();
if (this.window.__dimensions_embed) {
this.window.__dimensions_embed.addBadges();
}
}, 100);
}
});
Expand Down

0 comments on commit da02d60

Please sign in to comment.