We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13fc0a9 commit a60105fCopy full SHA for a60105f
apps/builder/app/shared/instance-utils.ts
@@ -403,7 +403,7 @@ export const reparentInstanceMutable = (
403
}
404
405
// try to use slot fragment as target instead of slot itself
406
- let parentInstance = data.instances.get(dropTarget.parentSelector[0]);
+ const parentInstance = data.instances.get(dropTarget.parentSelector[0]);
407
if (
408
parentInstance?.component === portalComponent &&
409
parentInstance.children.length > 0 &&
@@ -422,7 +422,7 @@ export const reparentInstanceMutable = (
422
if (parent === undefined) {
423
return;
424
425
- let prevPosition = parent.children.findIndex(
+ const prevPosition = parent.children.findIndex(
426
(child) => child.type === "id" && child.value === rootInstanceId
427
);
428
const child = parent.children[prevPosition];
0 commit comments