Skip to content

Commit

Permalink
поправил вьювер
Browse files Browse the repository at this point in the history
  • Loading branch information
veglem committed May 31, 2024
1 parent 41f19c2 commit 9d21904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/components/EditorWrapper/EditorWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class EditorWrapper extends Component<EditorProps, EditorState> {
updateState = (store:NoteStoreState) => {
this.syncTitle(store.note.title)

if (!this.props.isOwner && this.props.note?.public) {
if (!this.props.isOwner && this.props.note?.public && !this.props.isEditable) {
this.self.innerHTML = ""
new Viewer(
store.note.blocks,
Expand Down

0 comments on commit 9d21904

Please sign in to comment.