mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +08:00
Fix comparison operator in package version retrieval in versions.ts
This commit is contained in:
@@ -247,7 +247,7 @@ export const commands = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!pkgVersion) {
|
if (!pkgVersion) {
|
||||||
const pkg = data.find((d) => d.id === pkgId);
|
const pkg = data.find((d) => String(d.id) === String(pkgId));
|
||||||
if (pkg) {
|
if (pkg) {
|
||||||
pkgVersion = pkg.name;
|
pkgVersion = pkg.name;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user