Skip to content

Commit

Permalink
Fix monitor parse and alerts table (#645)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Agrawal <ashisagr@amazon.com>
(cherry picked from commit 6972667)
  • Loading branch information
lezzago authored and github-actions[bot] committed Jul 15, 2023
1 parent daa0fe0 commit f5055d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/pages/MonitorDetails/containers/MonitorDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ export default class MonitorDetails extends Component {
) : null}
{this.state.tabContent}
</div>
) : null}
) : (
this.renderAlertsTable()
)}

{isJsonModalOpen && (
<EuiOverlayMask>
Expand Down
2 changes: 1 addition & 1 deletion public/utils/contextMenu/monitors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getMonitors = async (params) => {

const parseMonitor = (monitor) => {
const state = monitor.monitor.enabled ? 'enabled' : 'disabled';
const latestAlert = monitor.latestAlert === "--" ? undefined : monitor.latestAlert;
const latestAlert = monitor.lastNotificationTime === "--" ? undefined : monitor.lastNotificationTime;
return {
name: monitor.name,
state: state,
Expand Down

0 comments on commit f5055d2

Please sign in to comment.