Skip to content

Commit

Permalink
fix(decorator): fixed undefine getter
Browse files Browse the repository at this point in the history
  • Loading branch information
xTCry committed Feb 25, 2022
1 parent 17fbc48 commit 49e78b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factories/vk-params-factory.ts
Expand Up @@ -13,7 +13,7 @@ export class VkParamsFactory implements ParamsFactory {
case VkParamtype.CONTEXT:
return data && ctx ? ctx[data as string] : ctx;
case VkParamtype.MESSAGE:
return data && ctx.message ? ctx.message[data as string] : ctx.message;
return data && ctx.message ? ctx.message?.[data as string] : ctx.message;
default:
return null;
}
Expand Down

0 comments on commit 49e78b6

Please sign in to comment.