Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/event type clone #5659

Merged
merged 11 commits into from
Nov 23, 2022
3 changes: 2 additions & 1 deletion packages/trpc/server/routers/viewer/eventTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ export const eventTypesRouter = router({
};

const appKeys = await getAppKeysFromSlug("daily-video");
if (typeof appKeys.api_key === "string") {
// Shouldn't override input locations
if (rest.locations?.length === 0 && typeof appKeys.api_key === "string") {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When creating new locations are empty array []

data.locations = [{ type: DailyLocationType }];
}

Expand Down