Skip to content

Commit

Permalink
fix(mobile): reply and rotate screen causes error
Browse files Browse the repository at this point in the history
  • Loading branch information
aprendendofelipe committed Jul 25, 2022
1 parent cbdaeb8 commit fe30c78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/interface/components/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit fe30c78

Please sign in to comment.