Skip to content

Commit

Permalink
accept undefined in getEdges for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sshugsc committed Feb 11, 2025
1 parent 3cca6cd commit c88c2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function getEdges<ReqFields extends string = string>(node: GeneralRecordType<Req
Object.keys(node)
.filter((key) => key.split('_')[1] && list.includes(key.split('_')[1]))
.forEach((key) => {
if (node[key].deletedAt === null) {
if (node[key].deletedAt === undefined || null) {
edges.push(...node[key]);
}
});
Expand Down

0 comments on commit c88c2b8

Please sign in to comment.