@@ -2,6 +2,7 @@ import {Box, MenuDivider, Text} from '@sanity/ui'
2
2
3
3
import { MenuItem } from '../../../../../ui-components'
4
4
import { LoadingBlock } from '../../../../components/loadingBlock'
5
+ import { hasSanityPackageInImportMap } from '../../../../environment/hasSanityPackageInImportMap'
5
6
import { useTranslation } from '../../../../i18n'
6
7
import { SANITY_VERSION } from '../../../../version'
7
8
import { type ResourcesResponse , type Section } from './helper-functions/types'
@@ -15,6 +16,7 @@ interface ResourcesMenuItemProps {
15
16
export function ResourcesMenuItems ( { error, isLoading, value} : ResourcesMenuItemProps ) {
16
17
const sections = value ?. resources ?. sectionArray
17
18
const latestStudioVersion = value ?. latestVersion
19
+ const isAutoUpdating = hasSanityPackageInImportMap ( )
18
20
const { t} = useTranslation ( )
19
21
20
22
if ( isLoading ) {
@@ -61,7 +63,7 @@ export function ResourcesMenuItems({error, isLoading, value}: ResourcesMenuItemP
61
63
< Text size = { 1 } muted weight = "medium" textOverflow = "ellipsis" >
62
64
{ t ( 'help-resources.studio-version' , { studioVersion : SANITY_VERSION } ) }
63
65
</ Text >
64
- { ! error && latestStudioVersion && (
66
+ { ! error && latestStudioVersion && ! isAutoUpdating && (
65
67
< Box paddingTop = { 2 } >
66
68
< Text size = { 1 } muted textOverflow = "ellipsis" >
67
69
{ t ( 'help-resources.latest-sanity-version' , {
0 commit comments