Skip to content

Commit

Permalink
fix(pci-object-storage): ods user select
Browse files Browse the repository at this point in the history
ref: DTCORE-2937
Signed-off-by: Florian Renaut <[email protected]>
  • Loading branch information
frenautvh authored and kqesar committed Dec 18, 2024
1 parent ece26e5 commit adb0e30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function LinkUserSelector({
onSelectOwner,
onCancel,
}: Readonly<LinkUserSelectorProps>) {
const { t } = useTranslation('containers/add');
const { t: tAssociateUser } = useTranslation(
'containers/associate-user-to-container',
);
Expand Down Expand Up @@ -118,8 +117,9 @@ export default function LinkUserSelector({
undefined
}
onOdsValueChange={(event: OdsSelectValueChangeEvent) => {
if (event.detail.value) {
if (listenForChangeEventsRef.current) {
const user = listUsers.find((u) => u.id === event.detail.value);
listenForChangeEventsRef.current = false;
onSelectOwner(user);
}
}}
Expand Down

0 comments on commit adb0e30

Please sign in to comment.