Can You Show/Hide an Array Item’s “+ Add Item” Option?
filteroption (example here ).
However, if they're objects you will need to use validation to check for duplicates since they can't be dynamically filtered in the schema. You could also create a custom input component.
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.