Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions apps/web/client/src/server/api/routers/project/fork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,7 @@ function createDefaultFramesForDefaultBranch(
type: DefaultFrameType.DESKTOP,
});

const mobileFrame = createDefaultFrame({
canvasId,
branchId: defaultBranchMap.newBranch.id,
url: defaultBranchMap.newSandboxUrl,
type: DefaultFrameType.MOBILE,
});

return [desktopFrame, mobileFrame];
return [desktopFrame];
}

export const fork = protectedProcedure
Expand Down
7 changes: 0 additions & 7 deletions apps/web/client/src/server/api/routers/project/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,6 @@ export const projectRouter = createTRPCRouter({
type: DefaultFrameType.DESKTOP,
});
await tx.insert(frames).values(desktopFrame);
const mobileFrame = createDefaultFrame({
canvasId: newCanvas.id,
branchId: newBranch.id,
url: input.sandboxUrl,
type: DefaultFrameType.MOBILE,
});
await tx.insert(frames).values(mobileFrame);

// 6. Create the default chat conversation
await tx.insert(conversations).values(createDefaultConversation(newProject.id));
Expand Down
4 changes: 2 additions & 2 deletions packages/db/src/defaults/frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export enum DefaultFrameType {
}

export const DefaultDesktopFrame = {
x: '5',
y: '0',
x: '150',
y: '40',
width: '1536',
height: '960',
} as const;
Expand Down
Loading