mirror of
https://github.com/strapi/strapi.git
synced 2025-12-12 15:32:42 +00:00
fix: copy button shown on v4 plugins
This commit is contained in:
parent
62c4d48d34
commit
21c57644b1
@ -66,7 +66,10 @@ const NpmPackageCard = ({
|
||||
}`;
|
||||
|
||||
const versionRange = semver.validRange(attributes.strapiVersion);
|
||||
const isCompatible = semver.satisfies(strapiAppVersion ?? '', versionRange ?? '');
|
||||
|
||||
const isCompatible = versionRange
|
||||
? semver.satisfies(strapiAppVersion ?? '', versionRange)
|
||||
: false;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user