From 6c7c465b173d790c1ddd577c70c7bb1f07903600 Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 16 Sep 2025 16:17:23 +0800 Subject: [PATCH] fix: Update reopening logic for chunk details in Drawer component --- .../datasets/documents/detail/completed/common/drawer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx b/web/app/components/datasets/documents/detail/completed/common/drawer.tsx index 806eff01f6..70cc2c27d7 100644 --- a/web/app/components/datasets/documents/detail/completed/common/drawer.tsx +++ b/web/app/components/datasets/documents/detail/completed/common/drawer.tsx @@ -49,7 +49,7 @@ const Drawer = ({ return chunk && chunk.contains(target) }) const reopenChunkDetail = (currSegment.showModal && isClickOnChildChunk) - || (currChildChunk.showModal && isClickOnChunk && !isClickOnChildChunk) + || (currChildChunk.showModal && isClickOnChunk && !isClickOnChildChunk) || (!isClickOnChunk && !isClickOnChildChunk) return target && !panelContent.contains(target) && (!needCheckChunks || reopenChunkDetail) }, [currSegment, currChildChunk, needCheckChunks])