diff --git a/.changeset/fluffy-phones-explain.md b/.changeset/fluffy-phones-explain.md new file mode 100644 index 00000000..d75d2795 --- /dev/null +++ b/.changeset/fluffy-phones-explain.md @@ -0,0 +1,5 @@ +--- +"@tinloof/sanity-studio": patch +--- + +Hide the "Preview" button from the `pathname` field when used in the Structure Tool (where it has no effect). diff --git a/packages/sanity-studio/src/components/PathnameFieldComponent.tsx b/packages/sanity-studio/src/components/PathnameFieldComponent.tsx index b5ce2b64..35c1a0db 100644 --- a/packages/sanity-studio/src/components/PathnameFieldComponent.tsx +++ b/packages/sanity-studio/src/components/PathnameFieldComponent.tsx @@ -423,21 +423,21 @@ function PreviewButton({ localizedPathname }: { localizedPathname: string }) { }, [navigate, localizedPathname]); return ( -