mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-13 14:00:52 +02:00
fix(ui): prevent Code Editor drawer from collapsing when content is empty (#25855)
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
let _content = $state(value);
|
||||
|
||||
$effect(() => {
|
||||
if (_content) {
|
||||
if (_content !== undefined && _content !== null) {
|
||||
value = _content;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<Drawer bind:show>
|
||||
<Drawer bind:show className="h-full">
|
||||
<div class="flex h-full flex-col">
|
||||
<div
|
||||
class=" sticky top-0 z-30 flex justify-between bg-white px-4.5 pt-3 pb-3 dark:bg-gray-900 dark:text-gray-100"
|
||||
|
||||
Reference in New Issue
Block a user