fix propagation of noteTypeMimeChanged event to global scope to fix e.g. edit button switching depending on note type

This commit is contained in:
zadam
2022-10-14 20:36:40 +02:00
parent a4e99662cb
commit 4116fe0a20
2 changed files with 10 additions and 6 deletions

View File

@@ -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;
}