mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 05:14:24 +01:00
fix(layout/statusbar): code note switcher displayed for other note types
This commit is contained in:
parent
02fab16475
commit
9946d8c6b9
@ -356,7 +356,7 @@ function CodeNoteSwitcher({ note }: StatusBarContext) {
|
|||||||
mimeTypes.find(m => m.mime === currentNoteMime)
|
mimeTypes.find(m => m.mime === currentNoteMime)
|
||||||
), [ mimeTypes, currentNoteMime ]);
|
), [ mimeTypes, currentNoteMime ]);
|
||||||
|
|
||||||
return (
|
return (note.type === "code" &&
|
||||||
<>
|
<>
|
||||||
<StatusBarDropdown
|
<StatusBarDropdown
|
||||||
icon="bx bx-code-curly"
|
icon="bx bx-code-curly"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user