Skip to content

Commit 62a2cc1

Browse files
add return statement
1 parent 49fc3f5 commit 62a2cc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/frontend/src/pages/draft/Draft.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ const Draft = (): JSX.Element => {
3737
}, index * 500);
3838
});
3939

40+
return ()=>{
41+
appStateContext?.dispatch({ type: 'UPDATE_IS_LOADED_SECTIONS', payload: {section : null, 'act': 'removeAll' } })
42+
}
4043

4144
}, []);
4245

46+
47+
4348
useEffect(()=>{
4449
if(isLoadedSections?.length === sections.length)
4550
{

0 commit comments

Comments
 (0)