diff --git a/ui/package.json b/ui/package.json index f67b30fd5..2e4c54a59 100644 --- a/ui/package.json +++ b/ui/package.json @@ -18,6 +18,7 @@ "mobx-react": "^5.2.3", "mobx-stored": "^1.0.2", "moment": "^2.22.2", + "object-hash": "^1.3.0", "prop-types": "^15.6.2", "qs": "^6.5.2", "raven-js": "^3.26.3", diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js index 0ab328fd6..4a5975376 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js @@ -4,6 +4,8 @@ import PropTypes from "prop-types"; import { observable, action } from "mobx"; import { observer, inject } from "mobx-react"; +import hash from "object-hash"; + import moment from "moment"; import Moment from "react-moment"; @@ -108,7 +110,7 @@ const SilenceDetails = ({ alertmanager, silence }) => { {silence.matchers.map(matcher => ( {matcher.name} diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/index.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/index.js index 513781724..bed71bec0 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/index.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/index.js @@ -4,6 +4,8 @@ import PropTypes from "prop-types"; import { observer } from "mobx-react"; import { observable, action } from "mobx"; +import hash from "object-hash"; + import { CSSTransition } from "react-transition-group"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; @@ -147,7 +149,7 @@ const AlertGroup = observer( .slice(0, this.renderConfig.alertsToRender) .map(alert => ( (