Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 9529029

Browse files
committed
fix avoid include compound on null whitelist
1 parent 1491559 commit 9529029

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ export class JSONAPISerializer {
367367
forIn(relationships, (value, dashCaseKey) => {
368368
const key = camelCase(dashCaseKey);
369369

370+
if (!includeWhitelistKeys) {
371+
return;
372+
}
373+
370374
if (includeWhitelistKeys) {
371375
const isKeyWhitelisted = this.isKeyWhitelistedIncluded(
372376
key,

0 commit comments

Comments
 (0)