Commit 9831a6d
committed
fix(expert): make togglePinWithWidth inject optional
The Expert component was crashing in the immersive editor when sending
messages because it expected togglePinWithWidth to be provided by a
parent component. In the immersive editor, Expert is loaded directly
as a route component without the RightDrawer wrapper that provides
this function.
Changed the inject from array to object format with a default no-op
function, allowing the component to work both in the drawer context
and standalone in the immersive editor.1 parent 02ba301 commit 9831a6d
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
0 commit comments