From c37ef91692d39e27c2fc1cfea1ab612d770901a5 Mon Sep 17 00:00:00 2001 From: Balint Gabor <127662+gbalint@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:02:15 +0200 Subject: [PATCH] Fix insertion of not yet imported component --- .../strategies/grid-draw-to-insert-strategy.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/components/canvas/canvas-strategies/strategies/grid-draw-to-insert-strategy.tsx b/editor/src/components/canvas/canvas-strategies/strategies/grid-draw-to-insert-strategy.tsx index fea428a411d8..0f9ef63c5a84 100644 --- a/editor/src/components/canvas/canvas-strategies/strategies/grid-draw-to-insert-strategy.tsx +++ b/editor/src/components/canvas/canvas-strategies/strategies/grid-draw-to-insert-strategy.tsx @@ -240,7 +240,7 @@ const gridDrawToInsertStrategyInner = : null, ]), ], - [targetParent], + [targetParent, insertedElementPath], { strategyGeneratedUidsCache: { [insertionSubject.uid]: maybeWrapperWithUid?.uid,