Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Locations Resolver appears doubled-up on a singleton document #8585

Open
mitchuman opened this issue Feb 11, 2025 · 0 comments
Open

Comments

@mitchuman
Copy link

Describe the bug

Locations Resolver appears twice on a singleton document.

To Reproduce

Steps to reproduce the behavior:

  1. Create a singleton document (type: 'site')
  2. Define location resolver:
presentationTool({
  ...,
  resolve: {
    locations: {
      site: defineLocations({
        message: 'This document is used on all pages',
        locations: [
          {
            title: 'Home',
            href: '/',
          },
        ],
      }),
    }
  }
})

Expected behavior

Should only appear once

Screenshots

Image

Which versions of Sanity are you using?

@sanity/cli (global)          3.74.1 (up to date)
@sanity/code-input             5.1.2 (up to date)
@sanity/dashboard              4.1.2 (up to date)
@sanity/eslint-config-studio   5.0.1 (up to date)
@sanity/image-url              1.1.0 (up to date)
@sanity/preview-url-secret     2.1.4 (up to date)
@sanity/vision                3.74.1 (up to date)
sanity                        3.74.1 (up to date)

What operating system are you using?

macOS Sequoia 15.3 (24D60)

Which versions of Node.js / npm are you running?

9.8.1
v18.18.0

Additional context

When groups are defined for the site singleton document, one of the Location Resolver disappears. Seems to be only appearing under "All" and the first group (set as default):

Screen.Recording.2025-02-10.at.6.16.46.PM.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant