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
52
52
53
53
useEffect ( ( ) => {
54
54
// 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 ;
56
56
57
57
resetItemData ( ) ;
58
58
} , [ 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
141
141
142
142
useEffect ( ( ) => {
143
143
// 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 ;
145
145
146
146
resetListData ( ) ;
147
147
} , [ location . pathname ] ) ;
You can’t perform that action at this time.
0 commit comments