fixed bug for removing old references in array

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-01-29 12:58:23 -06:00
parent f99d4e3c4d
commit 1932fd7231

View File

@ -103,6 +103,8 @@ import VDS
}
public func viewModelDidUpdate() {
buttons.removeAll()
if let model = viewModel.leftLink {
leftLink.set(with: model, delegateObject, additionalData)
buttons.append(leftLink)