mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
chore: generate
This commit is contained in:
parent
e2ac588c84
commit
2aed4d263b
@ -160,9 +160,7 @@ export function Autocomplete(props: {
|
||||
|
||||
props.setPrompt((draft) => {
|
||||
if (part.type === "file") {
|
||||
const existingIndex = draft.parts.findIndex(
|
||||
(p) => p.type === "file" && "url" in p && p.url === part.url,
|
||||
)
|
||||
const existingIndex = draft.parts.findIndex((p) => p.type === "file" && "url" in p && p.url === part.url)
|
||||
if (existingIndex !== -1) {
|
||||
const existing = draft.parts[existingIndex]
|
||||
if (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user