diff --git a/src/utils.ts b/src/utils.ts index f0b0ccfb..61830494 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -80,7 +80,7 @@ export function recursiveFieldMaskSearch(data: Record): string[] { } const fieldKey = toSnakeCase(key); const value = data[key]; - if (typeof value === "object" && !Array.isArray(value)) { + if (typeof value === "object" && !Array.isArray(value) && value !== null) { const children = recursiveFieldMaskSearch(value); for (const child of children) { paths.push(`${fieldKey}.${child}`);