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,8 +130,10 @@ public class EmployeeTableViewCell: UITableViewCell {
smallPhotoSubscriber = viewModel.$smallPhoto smallPhotoSubscriber = viewModel.$smallPhoto
.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
nameLabel.text = viewModel.fullName nameLabel.text = viewModel.fullName