Skip to content

Commit

Permalink
fix problem with pie chart links
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick committed Aug 10, 2024
1 parent c7d8e6f commit 48f1191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/src/components/Dashboard/loginIdpPieChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const LoginIdpPieChart = ({
today.setDate(today.getDate() - 1);
formatEndDate(today)

let idpsChartArray = [["Identity Provider", "Logins"], ['', 0]];
let idpsChartArray = [["Identity Provider", "Logins"]];
const [idps, setIdps] = useState(idpsChartArray);

const params = {
Expand Down Expand Up @@ -112,9 +112,9 @@ const LoginIdpPieChart = ({

function selectHandler() {

var selection = chart.getSelection();
var selection = chart.getSelection();
if (selection.length) {
var identifier = idpsArray[selection[0].row];
var identifier = idpsArray[selection[0].row];
goToSpecificProviderHandler(identifier[0])
}
}
Expand Down

0 comments on commit 48f1191

Please sign in to comment.