From 74efd22363eb8caa6284819558db6dd0ee4f2e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Wed, 27 Jan 2021 22:52:14 +0900 Subject: [PATCH] types: fixed typing --- pages/bots/[id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/bots/[id].tsx b/pages/bots/[id].tsx index 91e9894..9426889 100644 --- a/pages/bots/[id].tsx +++ b/pages/bots/[id].tsx @@ -220,7 +220,7 @@ const Bots: NextPage = ({ data, date }) => { } export const getServerSideProps = async (ctx: Context) => { - const data = await Query.get.bot.load(ctx.query.id) ?? {} + const data = await Query.get.bot.load(ctx.query.id) ?? { id: '' } return { props: { data,