Skip to content

Commit

Permalink
Merge pull request #1189 from OskarDamkjaer/fix_clear_favorite_bug
Browse files Browse the repository at this point in the history
Clear resets favorite
  • Loading branch information
OskarDamkjaer authored Sep 7, 2020
2 parents f301b5f + 69cceca commit 7faf18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/modules/Editor/EditorFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
UIControls,
AnimationContainer
} from './styled'
import { EXPAND, CARDSIZE } from 'shared/modules/editor/editorDuck'
import { EXPAND, SET_CONTENT, CARDSIZE } from 'shared/modules/editor/editorDuck'
import { FrameButton } from 'browser-components/buttons'
import {
ExpandIcon,
Expand Down Expand Up @@ -96,8 +96,8 @@ export function EditorFrame({ bus }: EditorFrameProps): JSX.Element {
useEffect(() => bus && bus.take(CARDSIZE, toggleCardView))

function discardEditor() {
editorRef.current && editorRef.current.setValue('')
sizeState !== 'LINE' && setSize('LINE')
bus && bus.send(SET_CONTENT, { message: '' })

setAnimation({
from: stable,
Expand Down

0 comments on commit 7faf18e

Please sign in to comment.