fixed bug

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

View File

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