fixed bug

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2025-01-21 11:15:41 -06:00
parent 9dcd4846ce
commit 3314304b46

View File

@ -128,11 +128,10 @@ public class EmployeeTableViewCell: UITableViewCell {
// Bind the image to the photoImageView
smallPhotoSubscriber = viewModel.$smallPhoto
.compactMap { $0 }
.receive(on: DispatchQueue.main)
.sink { [weak self] image in
if let image {
self?.photoImageView.image = image
}
self?.photoImageView.image = image
}
// Bind data to UI components