2
0

feat(db): 🗃️ Remove duplicate fields in PublicTypebot

This commit is contained in:
Baptiste Arnaud
2022-06-04 11:05:46 +02:00
parent 8ec117aee4
commit ad32ae02ef
11 changed files with 29 additions and 47 deletions

View File

@@ -25,7 +25,6 @@ export const TypebotHeader = () => {
const router = useRouter()
const {
typebot,
updateOnBothTypebots,
updateTypebot,
save,
undo,
@@ -36,7 +35,7 @@ export const TypebotHeader = () => {
} = useTypebot()
const { setRightPanel, rightPanel, setStartPreviewAtBlock } = useEditor()
const handleNameSubmit = (name: string) => updateOnBothTypebots({ name })
const handleNameSubmit = (name: string) => updateTypebot({ name })
const handleChangeIcon = (icon: string) => updateTypebot({ icon })