Skip to content

Commit

Permalink
🐛 Made link title required #2701
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Jan 3, 2025
1 parent 376a067 commit aff60fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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',
Expand Down

0 comments on commit aff60fc

Please sign in to comment.