Skip to content

Commit

Permalink
fix: check for nullish prop instead of falsy (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattieBelt authored Oct 1, 2024
1 parent 22951df commit 9f3e282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smart-months-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@strapi/pack-up': patch
---

Check for nullish build options and don't fallback for falsy values
2 changes: 1 addition & 1 deletion src/node/core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ type ConfigProperty<T> = T | ConfigPropertyResolver<T>;

/** @internal */
export function resolveConfigProperty<T>(prop: ConfigProperty<T> | undefined, initialValue: T): T {
if (!prop) {
if (prop === undefined || prop === null) {
return initialValue;
}

Expand Down

0 comments on commit 9f3e282

Please sign in to comment.