@@ -68,7 +68,8 @@ export function activityManagementReducer(state: ActivityState = initialState, a
6868 ...state ,
6969 isLoading : true ,
7070 message : 'Set activityIdToArchive property' ,
71- activityIdToEdit : action . activityId ,
71+ // activityIdToEdit: action.activityId,
72+ activityIdToEdit : undefined ,
7273 } ;
7374 }
7475
@@ -81,6 +82,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
8182 data : activityList ,
8283 isLoading : false ,
8384 message : 'Activity archived successfully!' ,
85+ activityIdToEdit : undefined ,
8486 } ;
8587 }
8688
@@ -89,7 +91,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
8991 data : [ ] ,
9092 isLoading : false ,
9193 message : 'Something went wrong deleting activity!' ,
92- activityIdToEdit : '' ,
94+ activityIdToEdit : undefined ,
9395 } ;
9496 }
9597
@@ -127,7 +129,8 @@ export function activityManagementReducer(state: ActivityState = initialState, a
127129 ...state ,
128130 isLoading : true ,
129131 message : 'Set activityIdToUnarchive property' ,
130- activityIdToEdit : action . payload ,
132+ // activityIdToEdit: action.payload,
133+ activityIdToEdit : undefined ,
131134 } ;
132135 }
133136
@@ -140,7 +143,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
140143 data : activityList ,
141144 isLoading : false ,
142145 message : 'Unarchive activity successfully!' ,
143- activityIdToEdit : '' ,
146+ activityIdToEdit : undefined ,
144147 } ;
145148 }
146149
@@ -149,7 +152,7 @@ export function activityManagementReducer(state: ActivityState = initialState, a
149152 ...state ,
150153 isLoading : false ,
151154 message : 'Something went wrong unarchiving activities!' ,
152- activityIdToEdit : '' ,
155+ activityIdToEdit : undefined ,
153156 } ;
154157 }
155158
0 commit comments