Skip to content

Commit 244945c

Browse files
committed
fix: desktop error
1 parent c652b2b commit 244945c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/desktop/src/components/prompt-input.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,11 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
393393
<img src={`https://models.dev/logos/${i.provider.id}.svg`} class="size-6 p-0.5 shrink-0 " />
394394
<div class="flex gap-x-3 items-baseline flex-[1_0_0]">
395395
<span class="text-14-medium text-text-strong overflow-hidden text-ellipsis">{i.name}</span>
396-
<span class="text-12-medium text-text-weak overflow-hidden text-ellipsis truncate min-w-0">
397-
{DateTime.fromFormat(i.release_date, "yyyy-MM-dd").toFormat("LLL yyyy")}
398-
</span>
396+
<Show when={i.release_date}>
397+
<span class="text-12-medium text-text-weak overflow-hidden text-ellipsis truncate min-w-0">
398+
{DateTime.fromFormat(i.release_date, "yyyy-MM-dd").toFormat("LLL yyyy")}
399+
</span>
400+
</Show>
399401
</div>
400402
</div>
401403
<Show when={!i.cost || i.cost?.input === 0}>

packages/desktop/src/context/local.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
481481
if (!message) return ""
482482
if (Array.isArray(message)) return message.map((m) => getMessageText(m)).join(" ")
483483
const fileParts = sync.data.part[message.id]?.filter((p) => p.type === "file")
484-
console.log(fileParts)
485484

486485
return sync.data.part[message.id]
487486
?.filter((p) => p.type === "text")

0 commit comments

Comments
 (0)