fix(s3-storage): use target server in destination search filter

This commit is contained in:
KodekaTeam committed 2026-08-05 14:57:48 +07:00
1 parent 0fafd6e83c
commit c1890ccb89
1 file changed
+1 -1
@@ -218,7 +218,7 @@ export default function S3StorageSettingsPanel({
const filteredDestinations = destinations.filter((destination) => {
const query = search.trim().toLowerCase();
return !query || [destination.name, destination.provider, destination.bucket, destination.region, destination.endpoint ?? "", destination.server?.name ?? ""].some((value) => value.toLowerCase().includes(query));
return !query || [destination.name, destination.provider, destination.bucket, destination.region, destination.endpoint ?? "", destination.targetServer?.name ?? ""].some((value) => value.toLowerCase().includes(query));
});
const totalItems = filteredDestinations.length;
const totalPages = Math.max(1, Math.ceil(totalItems / PAGE_SIZE));