Skip to content

Commit c2508f1

Browse files
bug: file load from message chat
1 parent d151691 commit c2508f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/user/src/lib/components/Editors.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
<div class="flex h-full flex-col">
4747
{#if layout.fileEditorOpen}
48-
{#if items.length > 1 || (!items[0].task && !items[0].table && !items[0].generic)}
48+
{#if items.length > 1 || (!items[0]?.task && !items[0]?.table && !items[0]?.generic)}
4949
<div class="-mx-5 -mt-3 flex border-b-2 border-surface2 px-2 pb-2">
5050
<ul class="flex flex-1 flex-wrap gap-2 text-center text-sm">
5151
{#each items as item}

ui/user/src/lib/components/Thread.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
5858
const layout = getLayout();
5959
function onLoadFile(filename: string) {
60-
EditorService.load(items, project, filename);
60+
EditorService.load(items, project, filename, {
61+
threadID: id
62+
});
6163
layout.fileEditorOpen = true;
6264
}
6365

0 commit comments

Comments
 (0)