Skip to content

Commit

Permalink
fix(grpc-sdk): router function wrappers crashes (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 committed Nov 17, 2022
1 parent 5ce7483 commit e9e6383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/grpc-sdk/src/routing/wrapRouterFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function generateLog(
});
}

function parseRequestData(data: string) {
if (data.length !== 0) {
function parseRequestData(data?: string) {
if (data && data.length !== 0) {
return JSON.parse(data);
} else {
return {};
Expand Down

0 comments on commit e9e6383

Please sign in to comment.