Skip to content

Commit

Permalink
fix: change hostName to id
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramk committed Nov 6, 2023
1 parent b9a7196 commit 57508a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nerdlets/status-page-dashboard/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export default class StatusPagesDashboard extends React.PureComponent {
const hostId = this.state.tileToBeDeleted;
const { hostNames } = this.state;
hostNames.splice(
hostNames.findIndex((val) => val.hostName === hostId),
hostNames.findIndex((val) => val.id === hostId),
1
);
const { deleteTileModalActive } = this.state;
Expand Down

0 comments on commit 57508a3

Please sign in to comment.