mirror of
https://github.com/standardnotes/mobile.git
synced 2026-04-21 06:39:03 -04:00
Check noteEditor not null
This commit is contained in:
@@ -314,7 +314,7 @@ export default class Compose extends Abstract {
|
||||
Alert.alert('Note Locked', "This note is locked. Please unlock this note to make changes.", [{text: 'OK'}])
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
this.note.text = text;
|
||||
|
||||
// Clear dynamic previews if using plain editor
|
||||
@@ -462,7 +462,7 @@ export default class Compose extends Abstract {
|
||||
{this.state.webViewError ? "Unable to Load" : "LOADING"}
|
||||
</Text>
|
||||
<Text style={[this.styles.loadingWebViewSubtitle]}>
|
||||
{noteEditor.content.name}
|
||||
{noteEditor && noteEditor.content.name}
|
||||
</Text>
|
||||
</View>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user