Skip to content

Commit 1fff5f1

Browse files
takaokoujiclaude
andcommitted
fix: ensure vm prop is passed to WrappedComponent for CloudManager
Fixed CloudManager error "Cannot read properties of undefined (reading 'on')" by explicitly passing the vm prop to WrappedComponent. The CloudManager component requires the vm prop to register event listeners in its constructor, but it was being filtered out during prop destructuring. Changes: - Added explicit vm={vm} prop to WrappedComponent in render method - CloudManager can now access vm.on() for event listener registration - Maintains prop filtering to prevent React warnings while ensuring required props reach child components This resolves the TypeError that prevented CloudManager from initializing properly and causing the application to crash. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 9b9d8e3 commit 1fff5f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/url-loader-hoc.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ const URLLoaderHOC = function (WrappedComponent) {
281281
<WrappedComponent
282282
onStartSelectingUrlLoad={this.handleStartSelectingUrlLoad}
283283
onUrlLoaderSubmit={this.handleUrlSubmit}
284+
vm={vm}
284285
{...componentProps}
285286
/>
286287
</React.Fragment>

0 commit comments

Comments
 (0)