ImagesTable: Fix AWS regions indicator (off by one)

The AWS regions indicator that is currently baked into each row
containing an AWS image is currently off by one due to incorrect
parentheses in the code.
This is now fixed, so it displays '(1)' when there is one region (which
is the default, us-east-1) instead of '(0)' which was both wrong and
confusing.
This commit is contained in:
Simon Steinbeiss 2025-04-10 11:33:35 +02:00 committed by Klara Simickova
parent 0d11bfff16
commit 463bfddae5

View file

@ -27,6 +27,6 @@ export const AwsTarget = ({ compose }: AwsTargetPropTypes) => {
return <Skeleton />;
}
const text = `${targetOptions.aws} (${data?.data.length ?? 0 + 1})`;
const text = `${targetOptions.aws} (${(data?.data.length ?? 0) + 1})`;
return <>{text}</>;
};