Skip to content

Commit a60105f

Browse files
committed
Fix lint
1 parent 13fc0a9 commit a60105f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/builder/app/shared/instance-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export const reparentInstanceMutable = (
403403
}
404404
}
405405
// try to use slot fragment as target instead of slot itself
406-
let parentInstance = data.instances.get(dropTarget.parentSelector[0]);
406+
const parentInstance = data.instances.get(dropTarget.parentSelector[0]);
407407
if (
408408
parentInstance?.component === portalComponent &&
409409
parentInstance.children.length > 0 &&
@@ -422,7 +422,7 @@ export const reparentInstanceMutable = (
422422
if (parent === undefined) {
423423
return;
424424
}
425-
let prevPosition = parent.children.findIndex(
425+
const prevPosition = parent.children.findIndex(
426426
(child) => child.type === "id" && child.value === rootInstanceId
427427
);
428428
const child = parent.children[prevPosition];

0 commit comments

Comments
 (0)