[251104] feat: preShopperHouse-3

🕐 커밋 시간: 2025. 11. 04. 19:26:21

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +3줄
  • 삭제: -1줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/reducers/searchReducer.js

🔧 주요 변경 내용:
  • 핵심 비즈니스 로직 개선
This commit is contained in:
2025-11-04 19:26:21 +09:00
parent 419f945e0d
commit 25a00397e2

View File

@@ -142,13 +142,15 @@ export const searchReducer = (state = initialState, action) => {
// searchId와 relativeQueries 추출 (첫 번째 result에서)
const searchId = results.length > 0 ? results[0].searchId : null;
const relativeQueries = results.length > 0 ? results[0].relativeQueries : null;
const sortingType = results.length > 0 ? results[0].sortingType : null;
// Key 정보
const newKey = searchId || 'null';
const preKey = state.preShopperHouseData?.results?.[0]?.searchId || 'null';
const preSortingType = state.preShopperHouseData?.results?.[0]?.sortingType || 'null';
// [VoiceInput] Redux에 저장 로그
console.log('[ShopperHouse]-DIFF (after API) shopperHouseKey:', newKey, '| preShopperHouseKey:', preKey);
console.log('[ShopperHouse]-DIFF (after API) shopperHouseKey:', newKey, '| preShopperHouseKey:', preKey, '| sortingType:', sortingType || 'null', '| preSortingType:', preSortingType);
return {
...state,