diff --git a/electron/changelog.json b/electron/changelog.json index 304a2e7..3e6d166 100644 --- a/electron/changelog.json +++ b/electron/changelog.json @@ -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." } } diff --git a/electron/decoder/constants.js b/electron/decoder/constants.js index 9b6963c..38afe2a 100644 --- a/electron/decoder/constants.js +++ b/electron/decoder/constants.js @@ -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]) diff --git a/package.json b/package.json index 56c8220..a8bdade 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.1.1", + "version": "1.1.2", "main": "electron/main.js", "homepage": "./", "dependencies": {