types: fixed typing

This commit is contained in:
원더 2021-01-27 22:52:14 +09:00
parent d321033970
commit 74efd22363

View File

@ -220,7 +220,7 @@ const Bots: NextPage<BotsProps> = ({ 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,