File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export const ServiceTable = Shade<ServiceTableProps>({
8888 const reconciled = currentSelection
8989 . map ( ( s ) => entryById . get ( s . id ) )
9090 . filter ( ( e ) : e is ServiceView => e !== undefined )
91- if ( reconciled . length !== currentSelection . length || reconciled . some ( ( e , i ) => e !== currentSelection [ i ] ) ) {
91+ if ( reconciled . length !== currentSelection . length || reconciled . some ( ( e , i ) => e . id !== currentSelection [ i ] . id ) ) {
9292 collectionService . selection . setValue ( reconciled )
9393 }
9494 }
Original file line number Diff line number Diff line change @@ -187,12 +187,7 @@ export const ServicesList = Shade<ServicesListProps>({
187187 < ServiceTable
188188 services = { services }
189189 onSelectionChange = { ( selected : ServiceView [ ] ) => {
190- const newIds = selected . map ( ( s ) => s . id )
191- const changed =
192- newIds . length !== selectedServiceIds . length || newIds . some ( ( id ) => ! selectedServiceIds . includes ( id ) )
193- if ( changed ) {
194- setSelectedServiceIds ( newIds )
195- }
190+ setSelectedServiceIds ( selected . map ( ( s ) => s . id ) )
196191 } }
197192 />
198193 ) }
You can’t perform that action at this time.
0 commit comments