sanity 3.98.1-next.0-ebba8b0c91-202507091232 → 3.98.1-next.0-d2f9810b3c-202507091336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/_chunks-es/pane.mjs
CHANGED
@@ -1765,6 +1765,8 @@ function PaneHeaderCreateButton(t0) {
|
|
1765
1765
|
$[6] !== templatePermissions ? (t52 = templatePermissions.reduce(_temp2$8, {}), $[6] = templatePermissions, $[7] = t52) : t52 = $[7], t4 = t52;
|
1766
1766
|
}
|
1767
1767
|
const permissionsById = t4;
|
1768
|
+
if (templateItems.length === 0)
|
1769
|
+
return null;
|
1768
1770
|
if (nothingGranted) {
|
1769
1771
|
let t52;
|
1770
1772
|
$[8] !== t ? (t52 = t("pane-header.disabled-created-button.aria-label"), $[8] = t, $[9] = t52) : t52 = $[9];
|