From fa5b6757369938c797c94c753062084e18ae77ab Mon Sep 17 00:00:00 2001 From: "Balazs E. Pataki" Date: Tue, 3 Sep 2024 20:24:32 +0200 Subject: [PATCH 1/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34755eaf..617347d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.17.3 + +... + ## 0.17.2 - Fix tests, upgrade minor versions of mobx, mobx-state-tree From 07eb474ab70d2e0dc95c4101c5532d791f06ada0 Mon Sep 17 00:00:00 2001 From: "Balazs E. Pataki" Date: Tue, 3 Sep 2024 20:34:31 +0200 Subject: [PATCH 2/2] Fix case when config.fieldOverrides is undefined --- generator/config.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/generator/config.js b/generator/config.js index bbf9c2a6..480c9410 100644 --- a/generator/config.js +++ b/generator/config.js @@ -72,7 +72,9 @@ exports.mergeConfigs = function mergeConfigs(args, config) { !!args["--useIdentifierNumber"] || config.useIdentifierNumber, fieldOverrides: args["--fieldOverrides"] ? parseFieldOverrides(args["--fieldOverrides"]) - : parseFieldOverrides(config.fieldOverrides), + : config.fieldOverrides + ? parseFieldOverrides(config.fieldOverrides) + : [], dynamicArgs: !!args["--dynamicArgs"] || config.dynamicArgs, debug: !!args["--debug"] || config.debug, disableLogColors: !!args["--disableLogColors"] || config.disableLogColors @@ -80,8 +82,9 @@ exports.mergeConfigs = function mergeConfigs(args, config) { } const parseFieldOverrides = (fieldOverrides) => { - const _fieldOverrides = - Array.isArray(fieldOverrides) ? fieldOverrides : fieldOverrides.split(","); + const _fieldOverrides = Array.isArray(fieldOverrides) + ? fieldOverrides + : fieldOverrides.split(",") return _fieldOverrides .map((s) => s.trim())