fix: show Untitled for pages without a title in search results

This commit is contained in:
Philipinho
2026-08-25 00:20:57 +01:00
parent 1dae88c899
commit 3e0c3c1234
@@ -125,7 +125,7 @@ export function SearchResultItem({
<div style={{ flex: 1, minWidth: 0 }}> <div style={{ flex: 1, minWidth: 0 }}>
<Group justify="space-between" wrap="nowrap" gap="xs"> <Group justify="space-between" wrap="nowrap" gap="xs">
<Text truncate>{pageResult.title}</Text> <Text truncate>{pageResult.title || t("Untitled")}</Text>
<Text size="xs" c="dimmed" style={{ flexShrink: 0 }}> <Text size="xs" c="dimmed" style={{ flexShrink: 0 }}>
{timeAgo(pageResult.updatedAt)} {timeAgo(pageResult.updatedAt)}
</Text> </Text>