forked from github/wulkanowy-mirror
Don't copy teacher from previous lesson to completed (#341)
This commit is contained in:

committed by
Rafał Borcz

parent
bf6b857a3e
commit
1f5088cfc9
@ -35,8 +35,7 @@ class TimetableRepository @Inject constructor(
|
||||
item.apply {
|
||||
old.singleOrNull { this.start == it.start }?.let {
|
||||
return@map copy(
|
||||
room = if (room.isEmpty()) it.room else room,
|
||||
teacher = if (teacher.isEmpty()) it.teacher else teacher
|
||||
room = if (room.isEmpty()) it.room else room
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user