Skip to content

Commit

Permalink
fix: TypeError: Cannot convert undefined or null to object
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaenezhad committed Jun 13, 2020
1 parent b176d13 commit 913963f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/services/Authorization.ts
Expand Up @@ -131,7 +131,6 @@ export class Authorization {
fieldsByTypeName: {
// Preventing overwriting on prev values
...output[name]?.fieldsByTypeName,
name: name as any,
[relation.name]: {
// Preventing overwriting on prev values
...output[name]?.fieldsByTypeName[relation.name],
Expand All @@ -140,7 +139,7 @@ export class Authorization {
fieldsByTypeName: {},
},
},
},
} as any,
};
} else {
throw new Error(
Expand Down

0 comments on commit 913963f

Please sign in to comment.