mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix propagation of noteTypeMimeChanged event to global scope to fix e.g. edit button switching depending on note type
This commit is contained in:
@@ -184,7 +184,7 @@ class NoteContext extends Component {
|
||||
}
|
||||
|
||||
// "readOnly" is a state valid only for text/code notes
|
||||
if (!this.note || this.note.type !== 'text' && this.note.type !== 'code') {
|
||||
if (!this.note || (this.note.type !== 'text' && this.note.type !== 'code')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user