[DetailPanel] themeyype redux cleanup code
This commit is contained in:
@@ -107,7 +107,6 @@ export const homeReducer = (state = initialState, action) => {
|
||||
case types.CLEAR_THEME_DETAIL: {
|
||||
return {
|
||||
...state,
|
||||
themeCurationInfoData: null,
|
||||
themeCurationHotelDetailData: null,
|
||||
themeCurationDetailInfoData: null,
|
||||
productData: null,
|
||||
|
||||
@@ -100,7 +100,7 @@ export default function DetailPanel() {
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
dispatch(clearProductDetail());
|
||||
// dispatch(clearThemeDetail());
|
||||
dispatch(clearThemeDetail());
|
||||
};
|
||||
}, [dispatch]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user