Merge pull request #493 from hargata/Hargata/persist.dashboard

check against null instead of undefined,
This commit is contained in:
Hargata Softworks
2024-04-15 08:42:43 -06:00
committed by GitHub

View File

@@ -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);