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 AguilarandGilles De Mey authored and GitHub committed 2024-09-13 11:59:00 +02:00
1 parent 1783b47545
commit be4798096a
1 file changed
+4
@@ -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;