Skip to content

Commit

Permalink
Merge pull request #143 from JORDYMA-Link/BUG/#142
Browse files Browse the repository at this point in the history
[FIX] 피드 디테일에서 스와이프 백 시 피드에 변경 데이터 반영되지 않는 이슈 임시해결
  • Loading branch information
kimkyuchul authored Nov 10, 2024
2 parents 4fd3b36 + a471192 commit 0ce0e05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Projects/Feature/Scene/TabBar/BKTabFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ public struct BKTabFeature {

/// - 피드 디테일 진입 후 `WillDisappear` 됐을 때
case let .feedDetailWillDisappear(feed):
guard let stackElementId = state.path.ids.last,
let lastPath = state.path.last else {
return .send(.home(.feedDetailWillDisappear(feed)))
guard let stackElementId = state.path.ids.first,
let lastPath = state.path.first else {
return .none
}

switch lastPath {
Expand All @@ -223,7 +223,7 @@ public struct BKTabFeature {
return .send(.path(.element(id: stackElementId, action: .Calendar(.feedDetailWillDisappear(feed)))))

default:
return .none
return .send(.home(.feedDetailWillDisappear(feed)))
}

/// - 홈(미분류) -> `추천 폴더` 눌렀을 때 && 폴더함 -> `폴더` 진입 시
Expand Down

0 comments on commit 0ce0e05

Please sign in to comment.