fix(editor): 🐛 Refresh prevent
This commit is contained in:
@ -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
|
||||||
|
@ -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 = (
|
||||||
|
Reference in New Issue
Block a user