From 550e049b2b5e46e793af7417a5e5a0810ad16767 Mon Sep 17 00:00:00 2001 From: y-chan Date: Sun, 17 Sep 2023 17:19:31 +0900 Subject: [PATCH] fix latest condition --- src/components/LibraryManageDialog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/LibraryManageDialog.vue b/src/components/LibraryManageDialog.vue index d2e820bb47..ea59a93c62 100644 --- a/src/components/LibraryManageDialog.vue +++ b/src/components/LibraryManageDialog.vue @@ -225,7 +225,8 @@ const isLatest = (engineId: EngineId, library: BrandedDownloadableLibrary) => { if (!installedLibrary) { return false; } - return semver.gte(library.version, installedLibrary.version); + // installedLibrary.versionがlibrary.versionと等しいか、それより大きい場合はlatest + return semver.gte(installedLibrary.version, library.version); }; const isUninstallable = (