mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix(monitor): return null for cached monitor status name instead of undefined
This commit is contained in:
@@ -85,7 +85,7 @@ export default class MonitorResourceUtil {
|
||||
const cacheKey: string = statusId.toString();
|
||||
|
||||
if (monitorStatusNameCache[cacheKey] !== undefined) {
|
||||
return monitorStatusNameCache[cacheKey];
|
||||
return monitorStatusNameCache[cacheKey] ?? null;
|
||||
}
|
||||
|
||||
const monitorStatus: MonitorStatus | null =
|
||||
|
||||
Reference in New Issue
Block a user