fix(layout/statusbar): code note switcher displayed for other note types

This commit is contained in:
Elian Doran 2025-12-13 12:29:59 +02:00
parent 02fab16475
commit 9946d8c6b9
No known key found for this signature in database

View File

@ -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"