Skip to content

Commit 5aedc75

Browse files
committed
Fix that activateOrCreatePromptToCode is not making the panel active
1 parent 20bf45d commit 5aedc75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public struct PanelFeature: ReducerProtocol {
114114
state.content.suggestion = nil
115115
return .none
116116

117-
case .sharedPanel(.promptToCodeGroup(.createPromptToCode)):
117+
case .sharedPanel(.promptToCodeGroup(.activateOrCreatePromptToCode)),
118+
.sharedPanel(.promptToCodeGroup(.createPromptToCode)):
118119
let hasPromptToCode = state.content.promptToCode != nil
119120
return .run { send in
120121
await send(.displayPanelContent)

0 commit comments

Comments
 (0)