From 718b43aa44dada66557aa5ace2b4a0b503e4ee06 Mon Sep 17 00:00:00 2001 From: YarikMix <43493788+YarikMix@users.noreply.github.com> Date: Sun, 26 May 2024 17:14:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=B7=D0=B0=D0=BC=D0=B5=D1=82=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=B2=20=D0=BF=D0=BE=D1=88=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=BC=D0=B5=D1=82=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/components/ViewerWrapper/ViewerWrapper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/components/ViewerWrapper/ViewerWrapper.tsx b/public/src/components/ViewerWrapper/ViewerWrapper.tsx index 63360a0b..950cae81 100644 --- a/public/src/components/ViewerWrapper/ViewerWrapper.tsx +++ b/public/src/components/ViewerWrapper/ViewerWrapper.tsx @@ -22,7 +22,8 @@ export class ViewerWrapper extends ScReact.Component { private noteContentRef private viewerRef - componentDidMount() { + componentDidUpdate() { + console.log("componentDidUpdate") this.noteContentRef.innerHTML = "" new Viewer( this.props.note.data.content,