Merge pull request #310 from langflow-ai/fix/file_history
fix: make file history be the same when uploading a file and after refresh
This commit is contained in:
commit
5024d7a93a
2 changed files with 1320 additions and 1321 deletions
|
|
@ -337,7 +337,8 @@ export function Navigation({
|
||||||
message.role === "user" &&
|
message.role === "user" &&
|
||||||
(message.content.match(FILES_REGEX)?.[0] ?? null) !== null,
|
(message.content.match(FILES_REGEX)?.[0] ?? null) !== null,
|
||||||
)
|
)
|
||||||
.map((message) => message.content.match(FILES_REGEX)?.[0] ?? null);
|
.map((message) => message.content.match(FILES_REGEX)?.[0] ?? null)
|
||||||
|
.concat(conversationDocs.map((doc) => doc.filename));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col h-full bg-background">
|
<div className="flex flex-col h-full bg-background">
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue