fix: prevent history from crashing due to missing EditorView (#3257)
* put the editor into read only mode when examining history
This commit is contained in:
@@ -272,7 +272,11 @@ class DataLoader extends React.Component<Props> {
|
||||
revision,
|
||||
abilities,
|
||||
isEditing: this.isEditing,
|
||||
readOnly: !this.isEditing || !abilities.update || document.isArchived,
|
||||
readOnly:
|
||||
!this.isEditing ||
|
||||
!abilities.update ||
|
||||
document.isArchived ||
|
||||
!!revisionId,
|
||||
onSearchLink: this.onSearchLink,
|
||||
onCreateLink: this.onCreateLink,
|
||||
sharedTree: this.sharedTree,
|
||||
|
||||
Reference in New Issue
Block a user