Cannot read property 'pageTitle' of undefined
TypeError: Cannot read property 'pageTitle' of undefined
    at getServerSideProps (/home/ec2-user/rgtappweb/client/.next/server/static/development/pages/[id].js:1361:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.renderToHTML (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/render.js:341:24)
    at async DevServer.renderToHTMLWithComponents (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:651:26)
    at async DevServer.renderToHTML (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:815:36)
    at async DevServer.renderToHTML (/home/ec2-user/rgtappweb/client/node_modules/next/dist/server/next-dev-server.js:19:539)
    at async DevServer.render (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:540:22)
    at async Object.fn (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:390:17)
    at async Router.execute (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/router.js:134:32)
    at async DevServer.run (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:505:29)
    at async DevServer.handleRequest (/home/ec2-user/rgtappweb/client/node_modules/next/dist/next-server/server/next-server.js:149:20)