🐛 (typebot) Make sure old typebot properties are removed when pulled
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
import { omit } from 'utils'
|
||||
|
||||
export const removeTypebotOldProperties = (data: unknown) => {
|
||||
if (!data || typeof data !== 'object') return data
|
||||
if ('publishedTypebotId' in data) {
|
||||
return omit(data, 'publishedTypebotId')
|
||||
}
|
||||
return data
|
||||
}
|
Reference in New Issue
Block a user