mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 16:08:58 +01:00
chore(react): fix note path when empty
This commit is contained in:
parent
50c4301a34
commit
25d5d51085
@ -29,27 +29,25 @@ export default function NotePathsTab({ note, hoistedNoteId, notePath }: TabConte
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="note-paths-widget">
|
<div class="note-paths-widget">
|
||||||
{sortedNotePaths?.length && (
|
<>
|
||||||
<>
|
<div className="note-path-intro">
|
||||||
<div className="note-path-intro">
|
{sortedNotePaths?.length ? t("note_paths.intro_placed") : t("note_paths.intro_not_placed")}
|
||||||
{sortedNotePaths.length > 0 ? t("note_paths.intro_placed") : t("note_paths.intro_not_placed")}
|
</div>
|
||||||
</div>
|
|
||||||
|
<ul className="note-path-list">
|
||||||
<ul className="note-path-list">
|
{sortedNotePaths?.length ? sortedNotePaths.map(sortedNotePath => (
|
||||||
{sortedNotePaths.map(sortedNotePath => (
|
<NotePath
|
||||||
<NotePath
|
currentNotePath={notePath}
|
||||||
currentNotePath={notePath}
|
notePathRecord={sortedNotePath}
|
||||||
notePathRecord={sortedNotePath}
|
/>
|
||||||
/>
|
)) : undefined}
|
||||||
))}
|
</ul>
|
||||||
</ul>
|
|
||||||
|
<Button
|
||||||
<Button
|
triggerCommand="cloneNoteIdsTo"
|
||||||
triggerCommand="cloneNoteIdsTo"
|
text={t("note_paths.clone_button")}
|
||||||
text={t("note_paths.clone_button")}
|
/>
|
||||||
/>
|
</>
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user