Skip to content

Commit

Permalink
adding another conditional for req.body
Browse files Browse the repository at this point in the history
  • Loading branch information
pocketcolin committed Jan 14, 2025
1 parent 6b7b76e commit 202d499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routers/GraphQLRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GraphQLRouter extends PromiseRouter {
"read-only masterKey isn't allowed to update the GraphQL config."
);
}
const data = await req.config.parseGraphQLController.updateGraphQLConfig(req.body.params || {});
const data = await req.config.parseGraphQLController.updateGraphQLConfig(req.body?.params || {});
return {
response: data,
};
Expand Down

0 comments on commit 202d499

Please sign in to comment.