mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: clamp the artifacts pane's version when an artifact is removed (#30435)
This commit is contained in:
parent
8fc416ee78
commit
efe63bd34a
1 changed files with 2 additions and 0 deletions
|
|
@ -109,6 +109,8 @@
|
|||
selectedContentIdx = 0;
|
||||
} else if (newContents.length > contents.length) {
|
||||
selectedContentIdx = newContents.length - 1;
|
||||
} else if (selectedContentIdx > newContents.length - 1) {
|
||||
selectedContentIdx = newContents.length - 1;
|
||||
}
|
||||
|
||||
contents = newContents;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue