diff --git a/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift b/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift index 41fe1881..f5b8ff09 100644 --- a/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift +++ b/Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingFeature.swift @@ -311,6 +311,7 @@ private extension ContentSettingFeature { } return .none case .선택한_포킷_인메모리_삭제: + guard UIDevice.isPhone else { return .none } state.selectedPokit = nil return .none } diff --git a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift index 30214a32..2f8f618e 100644 --- a/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift +++ b/Projects/Feature/FeaturePokit/Sources/PokitRootFeature.swift @@ -128,6 +128,8 @@ public struct PokitRootFeature { /// 링크상세로 이동 case contentDetailTapped(BaseContentItem) case 미분류_카테고리_컨텐츠_조회 + + case 카테고리_삭제 } } @@ -332,7 +334,10 @@ private extension PokitRootFeature { func handleAsyncAction(_ action: Action.AsyncAction, state: inout State) -> Effect { 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