File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/js/packages/@reactpy/client/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function createImportSourceElement(props: {
6868} ) : any {
6969 let type : any ;
7070 if ( props . model . importSource ) {
71- let rootType = props . model . tagName . split ( "." ) [ 0 ] ;
71+ const rootType = props . model . tagName . split ( "." ) [ 0 ] ;
7272 if (
7373 ! isImportSourceEqual ( props . currentImportSource , props . model . importSource )
7474 ) {
@@ -107,13 +107,13 @@ function createImportSourceElement(props: {
107107
108108function tryGetSubType ( module : ReactPyModule , component : string ) {
109109 let subComponents : string [ ] = component . split ( "." ) ;
110- let rootComponent : string = subComponents [ 0 ] ;
110+ const rootComponent : string = subComponents [ 0 ] ;
111111 let subComponentAccessor : string = rootComponent ;
112112 let type : any = module [ rootComponent ] ;
113113
114114 subComponents = subComponents . slice ( 1 ) ;
115115 for ( let i = 0 ; i < subComponents . length ; i ++ ) {
116- let subComponent = subComponents [ i ] ;
116+ const subComponent = subComponents [ i ] ;
117117 subComponentAccessor += "." + subComponent ;
118118 type = type [ subComponent ] ;
119119 if ( ! type ) {
You can’t perform that action at this time.
0 commit comments