Fix/error dialog on disposed rowlist (#196)

* Dispose tasks when disposing a view

* Do not show dialog on disposed views
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-11-08 13:43:21 -05:00
1 parent 2eb0cf88af
commit 59ed47108d
3 files changed
+6 -2

No files matched your search

@@ -165,9 +165,12 @@ function RemovePlaceHolderItems(contentNode as object)
end while
end function
function HandleFeedLoadErrorDialog(error as object, rowList as object)
function HandleFeedLoadErrorDialog(error as object, rowList as object) as void
error = ErrorUtils.Format(error)
LogError(error)
rowList.onError = error
if rowList.hasField("dispose") and rowList.dispose
return
end if
DialogUtils.ShowDialog(error, "Failed to load feed", true)
end function