Skip to content

Commit

Permalink
Fixed items broken by pullrequest suggest commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-b-stb committed Aug 17, 2024
1 parent 348203e commit b39f2d6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
}
}
}
},
"Grid view placeholder" : {

},
"Timetable" : {

Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/TimetableFeature/TimetableDataItems.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct TimetableTimeGroupItems: Identifiable, Equatable, Hashable {

func getItem(for room: RoomType) -> TimetableItemWithFavorite? {
items.filter {
$0.timetableItem.room.type == forRoom //TODO: roomIj handling not decided?
$0.timetableItem.room.type == room //TODO: roomIj handling not decided?
}.first
}
}
Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/TimetableFeature/TimetableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ extension RoomType {

extension TimetableTimeGroupItems {
func getCellForRoom(room: RoomType, onTap: @escaping (TimetableItemWithFavorite) -> Void) -> TimetableGridCard {
return if let cell = getItemForRoom(forRoom: room) {
return if let cell = getItem(for: room) {
TimetableGridCard(timetableItem: cell.timetableItem) { timetableItem in
onTap(cell)
}
Expand Down

0 comments on commit b39f2d6

Please sign in to comment.