From e7f10a28302e51f9c0eb90afd8c2c8670068a2c9 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 17 Feb 2021 13:51:57 +0100 Subject: [PATCH] settings --- packages/dashboard/src/pages/settings.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/pages/settings.js b/packages/dashboard/src/pages/settings.js index 36b1eb6d..02505bc6 100644 --- a/packages/dashboard/src/pages/settings.js +++ b/packages/dashboard/src/pages/settings.js @@ -33,6 +33,7 @@ export async function getServerSideProps(context) { throw new Error(`Failed to retrieve flow ${flow} with code ${status}`); } catch (error) { return { + error, // redirect: { // permanent: false, // destination: `${config.kratos.browser}/self-service/settings/browser`, @@ -52,8 +53,9 @@ export async function getServerSideProps(context) { // }, // }; -export default function Settings({ flow }) { - console.log(flow); +export default function Settings({ flow, error }) { + console.log("flow", flow); + console.log("error", error); return null; // const fields = flow.methods.link.config.fields