Skip to content

Commit

Permalink
[chore] #154 카테고리 핸들링 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 24, 2024
1 parent 6d5e154 commit 67b4c6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ private extension ContentSettingFeature {
}
return .none
case .선택한_포킷_인메모리_삭제:
guard UIDevice.isPhone else { return .none }
state.selectedPokit = nil
return .none
}
Expand Down
7 changes: 6 additions & 1 deletion Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public struct PokitRootFeature {
/// 링크상세로 이동
case contentDetailTapped(BaseContentItem)
case 미분류_카테고리_컨텐츠_조회

case 카테고리_삭제
}
}

Expand Down Expand Up @@ -332,7 +334,10 @@ private extension PokitRootFeature {
func handleAsyncAction(_ action: Action.AsyncAction, state: inout State) -> Effect<Action> {
switch action {
case let .카테고리_삭제_API(categoryId):
return .run { _ in try await categoryClient.카테고리_삭제(categoryId) }
return .run { send in
try await categoryClient.카테고리_삭제(categoryId)
await send(.delegate(.카테고리_삭제))
}

case .미분류_카테고리_페이징_조회_API:
state.domain.pageable.page += 1
Expand Down

0 comments on commit 67b4c6a

Please sign in to comment.