Skip to content

Commit

Permalink
Allow field value to be undefined for setPathInObj
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilag committed Oct 11, 2022
1 parent 6d3f204 commit ae3400e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function setPathInObj(
fieldValue: any,
ancestors?: { name: string; index: number }[]
) {
if (path && fieldValue && obj) {
if (path && obj) {
const value = cloneDeep(fieldValue);
if (ancestors?.length) {
let prefix = '';
Expand Down

0 comments on commit ae3400e

Please sign in to comment.