Commit 3be6dcff authored by Simon Knox's avatar Simon Knox Committed by Kushal Pandya

Resolve "Error from javascripts/prometheus_alerts/index.js on Integrations Settings pages"

parent 206d10cb
...@@ -4,6 +4,10 @@ import ResetKey from './components/reset_key.vue'; ...@@ -4,6 +4,10 @@ import ResetKey from './components/reset_key.vue';
export default () => { export default () => {
const el = document.querySelector('#js-settings-prometheus-alerts'); const el = document.querySelector('#js-settings-prometheus-alerts');
if (!el) {
return;
}
const { authorizationKey, changeKeyUrl, notifyUrl, learnMoreUrl } = el.dataset; const { authorizationKey, changeKeyUrl, notifyUrl, learnMoreUrl } = el.dataset;
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment