From aff60fceaf69487d3d78ca16153ccbb6ff7c8da1 Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Fri, 3 Jan 2025 16:12:37 +0530 Subject: [PATCH] :bug: Made link title required #2701 --- sanityv3/schemas/objects/anchorLinkList/anchorLinkReference.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanityv3/schemas/objects/anchorLinkList/anchorLinkReference.tsx b/sanityv3/schemas/objects/anchorLinkList/anchorLinkReference.tsx index 4d70fcffd..7ff746d62 100644 --- a/sanityv3/schemas/objects/anchorLinkList/anchorLinkReference.tsx +++ b/sanityv3/schemas/objects/anchorLinkList/anchorLinkReference.tsx @@ -1,6 +1,7 @@ import { anchor } from '@equinor/eds-icons' import { EdsIcon } from '../../../icons' import { AnchorLinkDescription } from '../anchorReferenceField' +import { Rule } from 'sanity' export type AnchorLinkReference = { _type: 'anchorLinkReference' @@ -16,6 +17,7 @@ export default { name: 'title', description: 'Visible title for the anchor link in the list of anchors', type: 'string', + validation: (Rule: Rule) => Rule.required(), }, { name: 'anchorReference',