Update server/model/monitor.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Dmitry 2026-01-12 09:19:59 -08:00 committed by GitHub
parent 6a85ae6c1e
commit 18b1f50667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -646,7 +646,8 @@ class Monitor extends BeanModel {
bean.msg = `${res.status} - ${res.statusText}`;
bean.ping = dayjs().valueOf() - startTime;
if (this.getSaveResponse()) {
// in the frontend, the save response is only shown if the saveErrorResponse is set
if (this.getSaveResponse() && this.getSaveErrorResponse()) {
await this.saveResponseData(bean, res.data);
}