Skip to content

Commit

Permalink
Update src/morphix/src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas.G <gentilhomme.thomas@gmail.com>
  • Loading branch information
PierreDemailly and fraxken authored Jul 14, 2024
1 parent 587c670 commit e9e6d23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/morphix/src/index.ts
Original file line number Diff line number Diff line change
@@ -64,13 +64,13 @@ export async function morphix(
for (const property of keys) {
if (data[property] !== void 0) {
value = data[property];
continue;
}
else if (value && value[property]) {
value = value[property];
continue;
}
break;
else {
break;
}
}

const transformedValue = transform({ value, key });

0 comments on commit e9e6d23

Please sign in to comment.