Skip to content

Commit 07015aa

Browse files
committed
fix(app): folder suggestions missing last part
1 parent 972cb01 commit 07015aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,10 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
13941394
/>
13951395
<div class="flex items-center text-14-regular min-w-0">
13961396
<span class="text-text-weak whitespace-nowrap truncate min-w-0">
1397-
{getDirectory((item as { type: "file"; path: string }).path)}
1397+
{(() => {
1398+
const path = (item as { type: "file"; path: string }).path
1399+
return path.endsWith("/") ? path : getDirectory(path)
1400+
})()}
13981401
</span>
13991402
<Show when={!(item as { type: "file"; path: string }).path.endsWith("/")}>
14001403
<span class="text-text-strong whitespace-nowrap">

0 commit comments

Comments
 (0)