Fix eslint error
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Grégoire Delattre 2021-08-22 11:40:25 -10:00
parent b6be9488c9
commit 14e56454e7

View File

@ -29,9 +29,8 @@ export const KeyboardNavigation = ({
return; return;
} }
const containerWidth = containerRef.current.getBoundingClientRect().width; const containerWidth = containerRef.current.getBoundingClientRect().width;
const posterContainer = containerRef.current.getElementsByClassName( const posterContainer =
"img-thumbnail" containerRef.current.getElementsByClassName("img-thumbnail");
);
let posterWidth = 0; let posterWidth = 0;
if (posterContainer !== null && posterContainer.item(0) !== null) { if (posterContainer !== null && posterContainer.item(0) !== null) {