1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 01:41:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Fix comparison operator in package version retrieval in versions.ts

This commit is contained in:
sunnylqm
2025-04-10 21:53:29 +08:00
parent 9b55610675
commit e2737a29eb

View File

@@ -247,7 +247,7 @@ export const commands = {
}
if (!pkgVersion) {
const pkg = data.find((d) => d.id === pkgId);
const pkg = data.find((d) => String(d.id) === String(pkgId));
if (pkg) {
pkgVersion = pkg.name;
}