diff --git a/web/html/src/utils/network.ts b/web/html/src/utils/network.ts
index aba2a5975ee9..32b7b559c5c7 100644
--- a/web/html/src/utils/network.ts
+++ b/web/html/src/utils/network.ts
@@ -153,7 +153,7 @@ function showResponseErrorToastr(responseOrError: Error | JQueryXHR | JsonResult
if (hasMessages(responseOrError)) {
responseOrError.messages.flatMap((msg) => showErrorToastr(msg));
} else {
- responseErrorMessage(responseOrError).map((msg) => showErrorToastr(msg.text));
+ responseErrorMessage(responseOrError).forEach((msg) => showErrorToastr(msg.text));
}
}