We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bfe0f commit ad4fa7aCopy full SHA for ad4fa7a
pages/bots/[id]/edit.tsx
@@ -619,6 +619,7 @@ export const getServerSideProps = async (ctx: Context) => {
619
const user = await get.Authorization(parsed?.token)
620
const bot = await get.bot.load(ctx.query.id)
621
const spec = await get.botSpec(ctx.query.id, user)
622
+ const spec = await get.botSpec(ctx.query.id, user || '')
623
return {
624
props: {
625
bot: { ...bot, banner: spec.banner, bg: spec.bg },
0 commit comments