From fe30c784758399a55c938d7450afd1c826131bea Mon Sep 17 00:00:00 2001 From: aprendendofelipe <77860630+aprendendofelipe@users.noreply.github.com> Date: Sun, 17 Jul 2022 17:24:49 -0300 Subject: [PATCH] fix(mobile): reply and rotate screen causes error --- pages/interface/components/Content/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/interface/components/Content/index.js b/pages/interface/components/Content/index.js index 04c1e724f..4d9ec7e7f 100644 --- a/pages/interface/components/Content/index.js +++ b/pages/interface/components/Content/index.js @@ -43,7 +43,9 @@ export default function Content({ content, mode = 'view', viewFrame = false }) { }, [mode]); useEffect(() => { - setContentObject(content); + setContentObject((contentObject) => { + return { ...contentObject, ...content }; + }); }, [content]); const localStorageKey = useMemo(() => {