Merge pull request #498 from hargata/Hargata/persist.metric.bug

Minor bug fix
This commit is contained in:
Hargata Softworks
2024-04-23 23:43:18 -06:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ namespace CarCareTracker.Helper
/// </summary>
public static class StaticHelper
{
public static string VersionNumber = "1.3.1";
public static string VersionNumber = "1.3.2";
public static string DbName = "data/cartracker.db";
public static string UserConfigPath = "config/userConfig.json";
public static string GenericErrorMessage = "An error occurred, please try again later";

View File

@@ -54,7 +54,10 @@ function getSelectedMetrics() {
if (selectedMetricCheckBoxes.length == 6) {
$("#selectAllExpenseCheck").prop("checked", true);
}
$('#yearOption').val(yearMetric);
//check if option is available
if ($("#yearOption").has(`option[value=${yearMetric}]`).length > 0) {
$('#yearOption').val(yearMetric);
}
$("#reminderOption").val(reminderMetric);
//retrieve data.
yearUpdated();