Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c97c17

Browse files
Merge pull request #250 from boostcampwm-2024/feature-minutes-fix
[Feature-minutes-fix] 회의록에서 커서 무단 이동 문제 해결 / ai 요청도 history에 저장되도록 변경
2 parents 7271b72 + 69c8eb4 commit 0c97c17

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

‎client/src/components/Minutes/Tiptap/index.tsx‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ export default function Tiptap() {
4949
handleSocketEvent({
5050
actionType: "updateContent",
5151
payload: { content: editor.getHTML() },
52-
callback: () => {
53-
updateContent(editor.getHTML());
54-
},
5552
}),
5653
1500,
5754
);

‎client/src/store/NodeListProvider.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default function NodeListProvider({ children }: { children: ReactNode })
5555
const stage = useRef<Konva.Stage>();
5656
const socket = useConnectionStore((state) => state.socket);
5757
const handleSocketEvent = useConnectionStore((state) => state.handleSocketEvent);
58+
const currentRole = useConnectionStore((state) => state.currentRole);
5859

5960
useEffect(() => {
6061
if (!socket) return;
@@ -86,7 +87,6 @@ export default function NodeListProvider({ children }: { children: ReactNode })
8687
payload: initializedNodes,
8788
callback: (response) => {
8889
overrideNodeData(response);
89-
overrideHistory(JSON.stringify(response));
9090
},
9191
});
9292
},
@@ -97,7 +97,9 @@ export default function NodeListProvider({ children }: { children: ReactNode })
9797
updateTitle(updatedTitle.title);
9898
},
9999
updateContent: (updatedContent) => {
100-
updateContent(updatedContent.content);
100+
if (currentRole === "editor") {
101+
updateContent(updatedContent.content);
102+
}
101103
},
102104
};
103105

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /