1
0
Fork 0

Fix story editing instead of scratchpad

This commit is contained in:
Pabloader 2026-03-26 11:11:45 +00:00
parent c36e5654ed
commit ebcf5ecba2
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export const Editor = () => {
const handleScratchpadInput = useInputCallback((text: string) => { const handleScratchpadInput = useInputCallback((text: string) => {
if (!currentStory) return; if (!currentStory) return;
dispatch({ type: 'EDIT_STORY', id: currentStory.id, text }); dispatch({ type: 'EDIT_SCRATCHPAD', id: currentStory.id, text });
}, [currentStory?.id]); }, [currentStory?.id]);
const handleTabChange = (tab: Tab) => { const handleTabChange = (tab: Tab) => {