Skip to content

Commit e85b9aa

Browse files
committed
fix: event form isAdminUser always use latest publisher LINK-2384
1 parent 63f5784 commit e85b9aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/domain/event/eventForm/EventForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ const EventForm: React.FC<EventFormProps> = ({
136136
const { user } = useUser();
137137

138138
const { organizationAncestors } = useOrganizationAncestors(
139-
getValue(event?.publisher, '')
139+
getValue(event?.publisher, values.publisher)
140140
);
141141

142142
const isAdminUser = isAdminUserInOrganization({
143-
id: getValue(event?.publisher, ''),
143+
id: getValue(event?.publisher, values.publisher),
144144
organizationAncestors,
145145
user,
146146
});

0 commit comments

Comments
 (0)