message: Fixed Bug Create Receiver page loads forever when Prometheus API request returns an error
diff: @@ -435,7 +435,8 @@ const ReceiverWrapper: React.FC<ReceiverFormsWrapperProps> = React.memo(({ obj,
  setLoadError({ message: `Error alertManagerBaseURL not set` });
  return;
  }
  - coFetchJSON(`${alertManagerBaseURL}/api/v2/status/`).then((data) => {
  + coFetchJSON(`${alertManagerBaseURL}/api/v2/status/`)
  + .then((data) => {
  const originalAlertmanagerConfigJSON = data?.config?.original;
  if (_.isEmpty(originalAlertmanagerConfigJSON)) {
  setLoadError({ message: 'alertmanager.v2.status.config.original not found.' });
  @@ -450,7 +451,12 @@ const ReceiverWrapper: React.FC<ReceiverFormsWrapperProps> = React.memo(({ obj,
  });
  }
  }
  - });
  + })
  + .catch((e) =>
  + setLoadError({
  + message: `Error loading ${alertManagerBaseURL}/api/v2/status/: ${e.message}`,
  + }),
  + );
  }, [alertManagerBaseURL]);
  return (
  