Update variable name.

Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
Aramis Sennyey
2023-02-21 12:26:42 -05:00
committed by Fredrik Adelöw
parent 6bd5cade39
commit 487d699993
@@ -104,7 +104,7 @@ export const EntityOwnerPicker = () => {
const {
loading,
error,
value: owners,
value: ownerEntities,
} = useAsync(async () => {
const { items } = await catalogApi.getEntitiesByRefs({
entityRefs: availableOwners.map(ref =>
@@ -143,9 +143,9 @@ export const EntityOwnerPicker = () => {
multiple
disableCloseOnSelect
loading={loading}
options={owners || []}
options={ownerEntities || []}
value={
owners?.filter(e =>
ownerEntities?.filter(e =>
selectedOwners.some(
f => f === humanizeEntityRef(e, { defaultKind: 'Group' }),
),