Skip to content

Commit b3063ba

Browse files
committed
Another linter fix
1 parent ffdb041 commit b3063ba

File tree

1 file changed

+3
-3
lines changed
  • src/js/packages/@reactpy/client/src

1 file changed

+3
-3
lines changed

src/js/packages/@reactpy/client/src/vdom.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

108108
function 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) {

0 commit comments

Comments
 (0)