Commit 1fff5f1
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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
0 commit comments