fixed bug
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
9dcd4846ce
commit
3314304b46
@ -128,11 +128,10 @@ public class EmployeeTableViewCell: UITableViewCell {
|
|||||||
|
|
||||||
// Bind the image to the photoImageView
|
// Bind the image to the photoImageView
|
||||||
smallPhotoSubscriber = viewModel.$smallPhoto
|
smallPhotoSubscriber = viewModel.$smallPhoto
|
||||||
|
.compactMap { $0 }
|
||||||
.receive(on: DispatchQueue.main)
|
.receive(on: DispatchQueue.main)
|
||||||
.sink { [weak self] image in
|
.sink { [weak self] image in
|
||||||
if let image {
|
self?.photoImageView.image = image
|
||||||
self?.photoImageView.image = image
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bind data to UI components
|
// Bind data to UI components
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user