Skip to content

Commit 2fa64ef

Browse files
committed
fix: check for nullish prop instead of falsy
1 parent 5e23979 commit 2fa64ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.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
@@ -124,7 +124,7 @@ type ConfigProperty<T> = T | ConfigPropertyResolver<T>;
124124

125125
/** @internal */
126126
export function resolveConfigProperty<T>(prop: ConfigProperty<T> | undefined, initialValue: T): T {
127-
if (!prop) {
127+
if (prop === undefined || prop === null) {
128128
return initialValue;
129129
}
130130

0 commit comments

Comments
 (0)