[251020] fix: VoiceInputOverlay searchId Reset Resolved
🕐 커밋 시간: 2025. 10. 20. 23:26:04 📊 변경 통계: • 총 파일: 5개 • 추가: +28줄 • 삭제: -3줄 📝 수정된 파일: ~ com.twin.app.shoptime/.gitignore ~ com.twin.app.shoptime/src/actions/actionTypes.js ~ com.twin.app.shoptime/src/actions/searchActions.js ~ com.twin.app.shoptime/src/reducers/searchReducer.js ~ com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.jsx 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/actions/searchActions.js (javascript): ✅ Added: resetSearch() 🔧 주요 변경 내용: • 타입 시스템 안정성 강화 • 핵심 비즈니스 로직 개선
This commit is contained in:
@@ -44,7 +44,20 @@ export const searchReducer = (state = initialState, action) => {
|
||||
|
||||
case types.RESET_SEARCH:
|
||||
return {
|
||||
...initialState,
|
||||
...state,
|
||||
searchDatas: {},
|
||||
totalCount: {},
|
||||
searchPerformed: false,
|
||||
initPerformed: false,
|
||||
searchTimestamp: null,
|
||||
// shopperHouseData, shopperHouseSearchId 유지
|
||||
};
|
||||
|
||||
case types.RESET_VOICE_SEARCH:
|
||||
return {
|
||||
...state,
|
||||
shopperHouseData: null,
|
||||
shopperHouseSearchId: null,
|
||||
};
|
||||
|
||||
case types.SET_SEARCH_INIT_PERFORMED:
|
||||
|
||||
Reference in New Issue
Block a user