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:
parent
0d11bfff16
commit
463bfddae5
1 changed files with 1 additions and 1 deletions
|
|
@ -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}</>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue