Skip to content

Commit 3bb4158

Browse files
committed
[fix] #152 CategorySharing에서 컨텐츠 상세보기 링크 파싱 문제 수정
1 parent fb0c910 commit 3bb4158

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Projects/Feature/FeatureContentDetail/Sources/ContentDetail/ContentDetailFeature.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,14 @@ private extension ContentDetailFeature {
138138
func handleViewAction(_ action: Action.View, state: inout State) -> Effect<Action> {
139139
switch action {
140140
case .뷰가_나타났을때:
141-
guard let id = state.domain.contentId else {
141+
if let content = state.content {
142+
state.domain.content = content
143+
return .send(.inner(.URL_유효성_확인))
144+
} else if let id = state.domain.contentId {
145+
return .send(.async(.컨텐츠_상세_조회_API(id: id)))
146+
} else {
142147
return .none
143148
}
144-
return .send(.async(.컨텐츠_상세_조회_API(id: id)))
145149
case .공유_버튼_눌렀을때:
146150
state.showShareSheet = true
147151
return .none

0 commit comments

Comments
 (0)