From c5577aae2fb3f188f1500dbb5fc499101b562f88 Mon Sep 17 00:00:00 2001 From: maxime Date: Tue, 5 Mar 2024 20:40:52 +0100 Subject: [PATCH] do not paralellise steps updates --- src/pages/Editor.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/Editor.tsx b/src/pages/Editor.tsx index 1264466..23e276b 100644 --- a/src/pages/Editor.tsx +++ b/src/pages/Editor.tsx @@ -1262,7 +1262,7 @@ async function updateStepContents( relativePositions, ) - const tasks = step.children.map(async (child) => { + for (const child of step.children) { const { content: childContent, relativePositions: childRelativePositions, @@ -1279,10 +1279,6 @@ async function updateStepContents( childRelativePositions, ) } - }) - - for (const task of tasks) { - await task } }