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
parent 1783b47545
commit be4798096a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;