File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
WooCommerce/Classes/Bookings/BookingFilters Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,16 @@ private extension SyncableListSelectorView {
7777 }
7878 )
7979 . renderedIf ( viewModel. searchQuery. isEmpty)
80+ . listRowSeparator ( . hidden, edges: . top)
8081
81- ForEach ( items, id: \. self ) { item in
82+ ForEach ( Array ( items. enumerated ( ) ) , id: \. element ) { ( index , item) in
8283 optionRow ( text: syncable. displayName ( for: item) ,
8384 description: syncable. description ( for: item) ,
8485 isSelected: selectedItems. contains ( where: { $0 == syncable. filterItem ( for: item) } ) ,
8586 onSelection: { toggleSelectionIfPossible ( for: item) } )
87+ . if ( index == 0 && viewModel. searchQuery. isNotEmpty) {
88+ $0. listRowSeparator ( . hidden, edges: . top)
89+ }
8690 }
8791
8892 InfiniteScrollIndicator ( showContent: viewModel. shouldShowBottomActivityIndicator)
You can’t perform that action at this time.
0 commit comments