Skip to content

Commit b9de177

Browse files
committed
Fix warnings
1 parent 4a589e7 commit b9de177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public struct WidgetFeature: ReducerProtocol {
5353
return true
5454
}
5555
if panelState.sharedPanelState.isPanelDisplayed,
56-
panelState.sharedPanelState.content != nil
56+
!panelState.sharedPanelState.isEmpty
5757
{
5858
return true
5959
}
@@ -65,7 +65,7 @@ public struct WidgetFeature: ReducerProtocol {
6565
return false
6666
}(),
6767
isContentEmpty: chatPanelState.chatTabGroup.tabInfo.isEmpty
68-
&& panelState.sharedPanelState.content == nil,
68+
&& panelState.sharedPanelState.isEmpty,
6969
isChatPanelDetached: chatPanelState.chatPanelInASeparateWindow,
7070
isChatOpen: chatPanelState.isPanelDisplayed,
7171
animationProgress: circularWidgetState.animationProgress
@@ -311,7 +311,7 @@ public struct WidgetFeature: ReducerProtocol {
311311

312312
let documentURL = state.focusingDocumentURL
313313

314-
return .run { send in
314+
return .run { [app] send in
315315
await send(.observeEditorChange)
316316

317317
let notifications = AXNotificationStream(

0 commit comments

Comments
 (0)