Skip to content

Commit

Permalink
Merge pull request #493 from hargata/Hargata/persist.dashboard
Browse files Browse the repository at this point in the history
check against null instead of undefined,
  • Loading branch information
hargata authored Apr 15, 2024
2 parents 2f77d87 + a66538a commit dbfb7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wwwroot/js/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function getSelectedMetrics() {
var selectedMetricCheckBoxes = sessionStorage.getItem("selectedMetricCheckBoxes");
var yearMetric = sessionStorage.getItem("yearMetric");
var reminderMetric = sessionStorage.getItem("reminderMetric");
if (selectedMetricCheckBoxes != undefined && yearMetric != undefined && reminderMetric != undefined) {
if (selectedMetricCheckBoxes != null && yearMetric != null && reminderMetric != null) {
selectedMetricCheckBoxes = JSON.parse(selectedMetricCheckBoxes);
$(".reportCheckBox").prop('checked', false);
$("#selectAllExpenseCheck").prop("checked", false);
Expand Down

0 comments on commit dbfb7d7

Please sign in to comment.