Fix: Error 102 "Can't find dialog by ID" when embedding agent with from=agent** #11552 (#11594)

### What problem does this PR solve?

Fix: Error 102 "Can't find dialog by ID" when embedding agent with
from=agent** #11552

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-11-28 19:05:43 +08:00
committed by GitHub
parent ccce8beeeb
commit d2915f6984
2 changed files with 36 additions and 20 deletions

View File

@ -127,12 +127,14 @@ function AgentChatBox() {
/>
)}
</section>
<PdfSheet
visible={visible}
hideModal={hideModal}
documentId={documentId}
chunk={selectedChunk}
></PdfSheet>
{visible && (
<PdfSheet
visible={visible}
hideModal={hideModal}
documentId={documentId}
chunk={selectedChunk}
></PdfSheet>
)}
</>
);
}