File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export const withInjectableUi = <P extends object>(
6565 place : InjectUiPlace
6666) => {
6767 const placeUppercaseFirst = place . charAt ( 0 ) . toUpperCase ( ) + place . slice ( 1 )
68- window . builtinComponents ??= { }
69- window . builtinComponents [ placeUppercaseFirst ] = Component
68+ window . builtinOriginalComponents ??= { }
69+ window . builtinOriginalComponents [ placeUppercaseFirst ] = Component
7070 const WrappedComponent = ( props : P ) => {
7171 const components = Object . values ( ( window . mcraft ?. ui as ClientModUiApi ) ?. registeredReactWrappers ?. [ place ] || { } )
7272
@@ -86,5 +86,8 @@ export const withInjectableUi = <P extends object>(
8686
8787 WrappedComponent . displayName = `withInjectableUi(${ Component . displayName || Component . name || 'Component' } , ${ place } )`
8888
89+ window . builtinComponents ??= { }
90+ window . builtinComponents [ placeUppercaseFirst ] = WrappedComponent
91+
8992 return WrappedComponent
9093}
You can’t perform that action at this time.
0 commit comments