Fix story editing instead of scratchpad
This commit is contained in:
parent
c36e5654ed
commit
ebcf5ecba2
|
|
@ -32,7 +32,7 @@ export const Editor = () => {
|
|||
|
||||
const handleScratchpadInput = useInputCallback((text: string) => {
|
||||
if (!currentStory) return;
|
||||
dispatch({ type: 'EDIT_STORY', id: currentStory.id, text });
|
||||
dispatch({ type: 'EDIT_SCRATCHPAD', id: currentStory.id, text });
|
||||
}, [currentStory?.id]);
|
||||
|
||||
const handleTabChange = (tab: Tab) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue