Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/vls-65' into vls-65
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 31, 2024
2 parents 6b18f7d + aade028 commit fa0cc90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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
1 change: 0 additions & 1 deletion public/src/components/SharePanel/SharePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {ScReact} from "@veglem/screact";
import {Button} from "../Button/Button";
import "./SharePanel.sass"
import {ToggleButton} from "../ToggleButton/ToggleButton";
import {Img} from "../Image/Image";
Expand Down
2 changes: 2 additions & 0 deletions public/src/modules/stores/NotesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ class NotesStore extends BaseStore<NotesStoreState> {
AppNotesStore.ClearCallbacks()
AppNoteStore.ClearCallbacks()

this.invitesWS?.close();

this.SetState(state => ({
...state,
notes: [],
Expand Down

0 comments on commit fa0cc90

Please sign in to comment.