mirror of
https://github.com/docmost/docmost.git
synced 2026-08-26 00:07:04 +08:00
fix: show Untitled for pages without a title in search results
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user