[CAL-1530] Assigned members to managed event types missing preview URL (#8552)

Co-authored-by: gitstart-calcom <gitstart@users.noreply.github.com>
This commit is contained in:
GitStart-Cal.com 2023-04-27 19:51:20 +02:00 committed by GitHub
parent 668ea088ef
commit 5b9b7ab22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,13 @@ const EventTypePage = (props: EventTypeSetupProps) => {
const updateMutation = trpc.viewer.eventTypes.update.useMutation({
onSuccess: async () => {
formMethods.setValue(
"children",
formMethods.getValues().children.map((child) => ({
...child,
created: true,
}))
);
showToast(
t("event_type_updated_successfully", {
eventTypeTitle: eventType.title,