mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 21:04: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, currentNoteMime ]);
|
||||
|
||||
return (
|
||||
return (note.type === "code" &&
|
||||
<>
|
||||
<StatusBarDropdown
|
||||
icon="bx bx-code-curly"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user