2
0

fix(editor): 🐛 Refresh prevent

This commit is contained in:
Baptiste Arnaud
2022-05-14 09:19:36 -07:00
parent 508c1660b4
commit 4d9796c559
2 changed files with 4 additions and 3 deletions

View File

@ -44,6 +44,7 @@ import { fetcher, toKebabCase } from '../utils'
import {
isBubbleStepType,
isWebhookStep,
omit,
stepHasItems,
stepTypeHasItems,
stepTypeHasOption,
@ -343,8 +344,8 @@ const parseDefaultStepOptions = (type: StepWithOptionsType): StepOptions => {
export const checkIfTypebotsAreEqual = (typebotA: Typebot, typebotB: Typebot) =>
dequal(
JSON.parse(JSON.stringify(typebotA)),
JSON.parse(JSON.stringify(typebotB))
JSON.parse(JSON.stringify(omit(typebotA, 'updatedAt'))),
JSON.parse(JSON.stringify(omit(typebotB, 'updatedAt')))
)
export const checkIfPublished = (