Replace image and cause error
Jocs opened this issue · comments
Ran Luo commented
-
Searched existing issues to avoid creating duplicates.
-
Confirmed that it can be reproduced in muya.
Describe the bug
Cannot read properties of undefined (reading 'replaceImage')
TypeError: Cannot read properties of undefined (reading 'replaceImage')
at ImageSelector.replaceImageAsync (http://localhost:3000/main.bundle.js:64844:32)
at ImageSelector.handleLinkButtonClick (http://localhost:3000/main.bundle.js:65207:21)
at Object.click (http://localhost:3000/main.bundle.js:64954:34)
at invokeHandler (http://localhost:3000/main.bundle.js:46473:17)
at handleEvent (http://localhost:3000/main.bundle.js:46487:9)
at HTMLButtonElement.handler (http://localhost:3000/main.bundle.js:46492:9)
To Reproduce
Steps to reproduce the behavior:
- Insert an image
- Click the image edit button
- Input a new image url, and click the confirm button
- See error
Expected behavior
New image to replace the old image and show in the editor
Actual behavior
Error happened.
Operation System and Browser version (please complete the following information):
- OS: [e.g. macOS 13.5 (22G74)]
- Browser: [e.g. Chrome 116.0.5845.110 (arm64)]
Muya Version
e.g: 0.10.11
Additional context((Optional))
Add any other context about the problem here.