Skip to content

Commit

Permalink
chore: adding type check when setting up navigation drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Nov 27, 2019
1 parent ef3dfee commit 09c2604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ApiConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
_setupNav() {
setTimeout(() => {
const nav = this.shadowRoot.querySelector('.nav-drawer');
nav.classList.add('animatable');
if (nav) {
nav.classList.add('animatable');
}
});
}

Expand Down

0 comments on commit 09c2604

Please sign in to comment.