1
0
Fork 0

chore: Linter warnings

This commit is contained in:
Joost De Cock 2022-02-12 15:23:37 +01:00
parent 347d666ce7
commit a68f81ec73
22 changed files with 241 additions and 27 deletions

View file

@ -6,7 +6,9 @@ import { getProps } from '../utils'
const XrayPart = props => {
// Don't bother if this is the only part on display
if (props.gist.only && props.gist.only.length === 1) return null
const i = Object.keys(props.gist.xray?.reveal).indexOf(props.partName)%10
const i = props.gist.xray?.reveal
? Object.keys(props.gist.xray?.reveal).indexOf(props.partName)%10
: 0
const { topLeft, bottomRight } = props.part
return (