File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const SubmitItemProvider: React.FC<{ children: React.ReactNode }> = ({ ch
5252
5353 useEffect ( ( ) => {
5454 // Cleanup function to clear local storage when user leaves the route
55- if ( location . pathname . includes ( "/submit-item" ) ) return ;
55+ if ( location . pathname . includes ( "/submit-item" ) || location . pathname . includes ( "/attachment" ) ) return ;
5656
5757 resetItemData ( ) ;
5858 } , [ location . pathname ] ) ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export const SubmitListProvider: React.FC<{ children: React.ReactNode }> = ({ ch
141141
142142 useEffect ( ( ) => {
143143 // Cleanup function to clear local storage when user leaves the route
144- if ( location . pathname . includes ( "/submit-list" ) ) return ;
144+ if ( location . pathname . includes ( "/submit-list" ) || location . pathname . includes ( "/attachment" ) ) return ;
145145
146146 resetListData ( ) ;
147147 } , [ location . pathname ] ) ;
You can’t perform that action at this time.
0 commit comments