From 9c0174e2061c1ad9376e482c3f69d8a9dced6d8f Mon Sep 17 00:00:00 2001 From: Ken Date: Wed, 3 May 2023 12:23:55 +0200 Subject: [PATCH] =?UTF-8?q?:art:=20Ansvarlig=20for=20tema=20er=20n=C3=A5?= =?UTF-8?q?=20opt-in=20for=20god-praksis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aksel.nav.no/website/pages/god-praksis/[slug].tsx | 4 ++-- .../website/sanity/schema/documents/god-praksis/tema.tsx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aksel.nav.no/website/pages/god-praksis/[slug].tsx b/aksel.nav.no/website/pages/god-praksis/[slug].tsx index b4be55444e..de74883ea2 100644 --- a/aksel.nav.no/website/pages/god-praksis/[slug].tsx +++ b/aksel.nav.no/website/pages/god-praksis/[slug].tsx @@ -18,7 +18,7 @@ import { contributorsSingle, destructureBlocks } from "@/sanity/queries"; type PageProps = NextPageT<{ tema: Omit & { - ansvarlig: { title: string; roller: string[] }; + ansvarlig?: { title: string; roller: string[] }; }; }>; @@ -169,7 +169,7 @@ const Page = ({ tema: page }: PageProps["props"]) => { )} aria-hidden={!hasAnsvarlig} > - + Ansvarlig for tema
diff --git a/aksel.nav.no/website/sanity/schema/documents/god-praksis/tema.tsx b/aksel.nav.no/website/sanity/schema/documents/god-praksis/tema.tsx index 2cf48b6fa9..c6657484e4 100644 --- a/aksel.nav.no/website/sanity/schema/documents/god-praksis/tema.tsx +++ b/aksel.nav.no/website/sanity/schema/documents/god-praksis/tema.tsx @@ -73,7 +73,6 @@ export const Tema = defineType({ name: "ansvarlig", type: "reference", to: [{ type: "editor" }], - validation: (Rule) => Rule.required(), group: "innhold", }), defineField({