Skip to content

Commit 219ee28

Browse files
committed
fix build error
1 parent de5d598 commit 219ee28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/carousel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ class Carousel extends React.Component {
6363

6464
static getDerivedStateFromProps(nextProps, prevState) {
6565
const frames = [].concat(nextProps.frames || nextProps.children || [])
66-
const nextState = { frames }
66+
const nextState = { frames }
6767
if (frames.length && frames.length !== prevState.frames.length) {
6868
nextState.current = 0
6969
}
7070
return nextState
7171
}
7272

73-
hideFrames = () => {
73+
hideFrames () {
7474
for (let i = 1; i < this.state.frames.length; i++) {
7575
this.refs['f' + i].style.opacity = 0
7676
}

0 commit comments

Comments
 (0)