Skip to content

Commit eb568a7

Browse files
Fix dependency issue
Add mainModel to dependency array for useEffect()
1 parent 15fb69f commit eb568a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/ChangeTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ChangeTexture = () => {
3131
}
3232
});
3333
}
34-
}, [texture]);
34+
}, [texture, mainModel]);
3535

3636
const onTextureUpload = (event) => {
3737
if (event.target.files[0]) {

0 commit comments

Comments
 (0)