added navigation to new project on fork
This commit is contained in:
committed by
Kurt Hutten
parent
02463db741
commit
2d7fb91f92
@@ -90,14 +90,16 @@ export const forkProject = async ({ input }) => {
|
||||
title = await generateUniqueString(title, isUniqueCallback)
|
||||
|
||||
const { code, description, cadPackage } = projectData
|
||||
const data = foreignKeyReplacement({
|
||||
...input,
|
||||
title,
|
||||
code,
|
||||
description,
|
||||
cadPackage,
|
||||
})
|
||||
console.log('forking data', data)
|
||||
return db.project.create({
|
||||
data: foreignKeyReplacement({
|
||||
...input,
|
||||
title,
|
||||
code,
|
||||
description,
|
||||
cadPackage,
|
||||
}),
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user