File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/browser/modules/Editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import {
3535 UIControls ,
3636 AnimationContainer
3737} from './styled'
38- import { EXPAND , CARDSIZE } from 'shared/modules/editor/editorDuck'
38+ import { EXPAND , SET_CONTENT , CARDSIZE } from 'shared/modules/editor/editorDuck'
3939import { FrameButton } from 'browser-components/buttons'
4040import {
4141 ExpandIcon ,
@@ -96,8 +96,8 @@ export function EditorFrame({ bus }: EditorFrameProps): JSX.Element {
9696 useEffect ( ( ) => bus && bus . take ( CARDSIZE , toggleCardView ) )
9797
9898 function discardEditor ( ) {
99- editorRef . current && editorRef . current . setValue ( '' )
10099 sizeState !== 'LINE' && setSize ( 'LINE' )
100+ bus && bus . send ( SET_CONTENT , { message : '' } )
101101
102102 setAnimation ( {
103103 from : stable ,
You can’t perform that action at this time.
0 commit comments