Forum Discussion

iftomkins's avatar
11 years ago

How to handle an error when page.context.user. does not exist

I'm getting an error on View My Profile page, which is likely coming from this code: <#if user.id == page.context.user.id>   My guess is that page.context.user.id or user.id doesn't exist, so it th...
  • NicoB's avatar
    11 years ago
    Can you try:
    page.context.user?? && page.context.user.id??