mirror of
https://github.com/open-webui/open-webui.git
synced 2025-03-29 19:22:29 +01:00
Merge pull request #11287 from Youggls/dev
fix(chat): resolve duplicate collapsible IDs causing citation modal failures
This commit is contained in:
commit
04921be9f1
@ -124,7 +124,7 @@
|
||||
</div>
|
||||
{:else}
|
||||
<Collapsible
|
||||
id="collapsible-sources"
|
||||
id={`collapsible-${id}`}
|
||||
bind:open={isCollapsibleOpen}
|
||||
className="w-full max-w-full "
|
||||
buttonClassName="w-fit max-w-full"
|
||||
|
@ -748,7 +748,7 @@
|
||||
onSourceClick={async (id, idx) => {
|
||||
console.log(id, idx);
|
||||
let sourceButton = document.getElementById(`source-${message.id}-${idx}`);
|
||||
const sourcesCollapsible = document.getElementById(`collapsible-sources`);
|
||||
const sourcesCollapsible = document.getElementById(`collapsible-${message.id}`);
|
||||
|
||||
if (sourceButton) {
|
||||
sourceButton.click();
|
||||
|
Loading…
x
Reference in New Issue
Block a user