Skip to content

Commit a277557

Browse files
chore: generate
1 parent 005bf08 commit a277557

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/app/test-browser/prompt-attachments.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ describe("prompt attachment session ownership", () => {
8686
dispose()
8787
})
8888
})
89-
9089
})
9190

9291
test("rejects a duplicate native clipboard attachment in the V2 prompt store", async () => {

packages/session-ui/src/v2/components/prompt-input/attachments.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ export function createPromptInputV2Attachments(
113113
(part) =>
114114
part.type === "image" &&
115115
part.dataUrl === url &&
116-
(sourcePath ? part.sourcePath === sourcePath : !part.sourcePath && (clipboard || part.filename === file.name)),
116+
(sourcePath
117+
? part.sourcePath === sourcePath
118+
: !part.sourcePath && (clipboard || part.filename === file.name)),
117119
)
118120
if (duplicate) {
119121
input.duplicate()

0 commit comments

Comments
 (0)