Skip to content

Commit 9f3e282

Browse files
authored
fix: check for nullish prop instead of falsy (#12)
1 parent 22951df commit 9f3e282

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/smart-months-provide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@strapi/pack-up': patch
3+
---
4+
5+
Check for nullish build options and don't fallback for falsy values

src/node/core/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ type ConfigProperty<T> = T | ConfigPropertyResolver<T>;
130130

131131
/** @internal */
132132
export function resolveConfigProperty<T>(prop: ConfigProperty<T> | undefined, initialValue: T): T {
133-
if (!prop) {
133+
if (prop === undefined || prop === null) {
134134
return initialValue;
135135
}
136136

0 commit comments

Comments
 (0)