Resolved import bug.

This commit is contained in:
Patrick Fic
2023-04-12 12:38:04 -07:00
parent ff5ed92cd1
commit 165ada0f3a
3 changed files with 7 additions and 2 deletions

View File

@@ -108,5 +108,10 @@
"title": "Release Notes for 1.1.1",
"date": "03/30/2023",
"notes": "Minor bug fix."
},
"1.1.2": {
"title": "Release Notes for 1.1.2",
"date": "04/12/2023",
"notes": "Bug Fixes:\r\nResolved an issue where the incorrect ruleset could apply to a job on first import."
}
}

View File

@@ -32,7 +32,7 @@ function ChangeOfRuleSet({
}
function WhichRulesetToApply(close_date) {
const DateMoment = moment(close_date);
const DateMoment = close_date ? moment(close_date) : moment();
const newRuleSet = RuleSets.find(
(r) =>
DateMoment.isSameOrAfter(r.range[0]) && DateMoment.isBefore(r.range[1])

View File

@@ -3,7 +3,7 @@
"productName": "ImEX RPS",
"author": "ImEX Systems Inc. <support@thinkimex.com>",
"description": "ImEX RPS",
"version": "1.1.1",
"version": "1.1.2",
"main": "electron/main.js",
"homepage": "./",
"dependencies": {