File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/ai-dial-admin/src/components/Assets/Deployments Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { useI18n } from '@/src/locales/client';
1818import { AssetWithVersion , DeploymentAsset } from '@/src/models/dial/deployment-asset' ;
1919import { DialPrompt } from '@/src/models/dial/prompt' ;
2020import { ApplicationRoute } from '@/src/types/routes' ;
21+ import { isDeploymentAsset } from '@/src/utils/is-asset-view' ;
2122import { modifyNameVersionInPrompt } from '@/src/utils/prompts/versions' ;
2223
2324interface Props {
@@ -134,7 +135,7 @@ const AssetVersionControl: FC<Props> = ({
134135 onFooterClick = { ( ) => handleModalOpen ( ModalType . addVersion ) }
135136 />
136137
137- { ! ! assets ?. length && assets . length > 1 && (
138+ { ! ! assets ?. length && assets . length > 1 && ! isDeploymentAsset ( view ) && (
138139 < DialNeutralButton
139140 iconBefore = { < IconReplace { ...BASE_BUTTON_ICON_PROPS } /> }
140141 label = { t ( CompareI18nKey . CompareVersions ) }
You can’t perform that action at this time.
0 commit comments