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

@ -47,7 +47,7 @@ export const DashboardHeader = () => {
justify="space-between" justify="space-between"
alignItems="center" alignItems="center"
h="16" h="16"
maxW="1000px" maxW="900px"
flex="1" flex="1"
> >
<NextChakraLink <NextChakraLink

View File

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