diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 0127c0059f..440b5de320 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -183,13 +183,13 @@ const DetailHeader = ({ className={cn( 'mx-1', isShow && 'bg-state-base-hover', - (isShow || isFromMarketplace) && 'hover:bg-state-base-hover', + (isShow || isFromMarketplace) && hasNewVersion && 'hover:bg-state-base-hover', )} uppercase={false} text={ <>
{isFromGitHub ? meta!.version : version}
- {isFromMarketplace && } + {isFromMarketplace && hasNewVersion && } } hasRedCornerMark={hasNewVersion} diff --git a/web/app/components/plugins/update-plugin/plugin-version-picker.tsx b/web/app/components/plugins/update-plugin/plugin-version-picker.tsx index 62f8f85233..b05ddc0062 100644 --- a/web/app/components/plugins/update-plugin/plugin-version-picker.tsx +++ b/web/app/components/plugins/update-plugin/plugin-version-picker.tsx @@ -67,7 +67,7 @@ const PluginVersionPicker: FC = ({ return onSelect({ version, unique_identifier }) onShowChange(false) - }, [currentVersion, onSelect]) + }, [currentVersion, onSelect, onShowChange]) return (