🚸 (dashboard) Add unpublish menu item in dashboard
Also remove the useless publishedTypebotId field in Typebot Closes #232
This commit is contained in:
@@ -12,7 +12,6 @@ export type NewTypebotProps = Omit<
|
||||
| 'createdAt'
|
||||
| 'updatedAt'
|
||||
| 'id'
|
||||
| 'publishedTypebotId'
|
||||
| 'publicId'
|
||||
| 'customDomain'
|
||||
| 'icon'
|
||||
|
||||
@@ -56,7 +56,6 @@ const duplicateTypebot = (
|
||||
...typebot,
|
||||
id,
|
||||
name: `${typebot.name} copy`,
|
||||
publishedTypebotId: null,
|
||||
publicId: null,
|
||||
customDomain: null,
|
||||
groups: typebot.groups.map((b) => ({
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Typebot } from 'models'
|
||||
|
||||
export type TypebotInDashboard = Pick<
|
||||
Typebot,
|
||||
'id' | 'name' | 'publishedTypebotId' | 'icon'
|
||||
>
|
||||
export type TypebotInDashboard = Pick<Typebot, 'id' | 'name' | 'icon'> & {
|
||||
publishedTypebotId?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user