Alerting: Fix incorrect warning for OnCall integration (#93085)

Remove warning when geting oncall metadata

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
Sonia Aguilar
2024-09-13 11:59:00 +02:00
committed by GitHub
co-authored by Gilles De Mey
parent 1783b47545
commit be4798096a
@@ -30,6 +30,10 @@ export function getOnCallMetadata(
return onCallReceiverMeta;
}
if (!receiver.settings?.url) {
return onCallReceiverMeta;
}
// oncall status is still loading
if (onCallIntegrations === undefined) {
return onCallReceiverMeta;