diff --git a/src/pages/manage/components/version-table.tsx b/src/pages/manage/components/version-table.tsx index 517dc99..c16f02f 100644 --- a/src/pages/manage/components/version-table.tsx +++ b/src/pages/manage/components/version-table.tsx @@ -107,8 +107,9 @@ function removeSelectedVersions({ appId: number; }) { const versionNames: string[] = []; + const selectedSet = new Set(selected); for (const v of versions) { - if (selected.includes(v.id)) { + if (selectedSet.has(v.id)) { versionNames.push(v.name); } }