From c257721f108320666e4a48d11c5c2d00968a5c97 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 13:25:25 +0000 Subject: [PATCH] fix: correct flushFileReader helper to avoid infinite recursion Co-authored-by: hyoban <38493346+hyoban@users.noreply.github.com> --- .../rag-pipeline/components/update-dsl-modal.spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx b/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx index 4440b20af9..55bf1ca299 100644 --- a/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx +++ b/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx @@ -153,7 +153,7 @@ describe('UpdateDSLModal', () => { // Helper function to flush FileReader microtasks const flushFileReader = async () => { - await flushFileReader() + await new Promise(resolve => queueMicrotask(resolve)) } beforeEach(() => {