Skip to content

Commit

Permalink
fix: composer controlled mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nubsthead committed Jul 5, 2022
1 parent 1612e18 commit d1cb3eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/store/integrations/composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ const Composer: FC<ComposerProps> = ({
[setContent, onEditorChange]
);

useEffect(() => setContent(value), [value]);
useEffect(() => {
if (value) {
setContent(value);
}
}, [value]);

return (
<Container
Expand Down

0 comments on commit d1cb3eb

Please sign in to comment.