Skip to content

Commit

Permalink
Update src/components/JsonViewer/JsonViewer.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
  • Loading branch information
stasiukanya and RomanHotsiy committed Nov 30, 2020
1 parent 0c002c3 commit 7d5af6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/JsonViewer/JsonViewer.tsx
Expand Up @@ -52,7 +52,7 @@ class Json extends React.PureComponent<JsonProps> {
const elements = this.node.getElementsByClassName('collapsible');
for (const collapsed of Array.prototype.slice.call(elements)) {
const parentNode = collapsed.parentNode as Element;
parentNode!.classList.remove('collapsed');
parentNode.classList.remove('collapsed');
parentNode.querySelector('.collapser')!.setAttribute('aria-label', 'collapse');
}
};
Expand Down

0 comments on commit 7d5af6e

Please sign in to comment.