Skip to content

Commit

Permalink
fix(editor): 🐛 Fix inconsistent webhook saving
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 15, 2022
1 parent 666f0c3 commit eef60fd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { HeadersInputs, QueryParamsInputs } from './KeyValueInputs'
import { VariableForTestInputs } from './VariableForTestInputs'
import { DataVariableInputs } from './ResponseMappingInputs'
import { byId } from 'utils'
import { dequal } from 'dequal'
import { SwitchWithLabel } from 'components/shared/SwitchWithLabel'

type Props = {
Expand All @@ -62,8 +61,8 @@ export const WebhookSettings = ({
)

useEffect(() => {
if (localWebhook) return
const incomingWebhook = webhooks.find(byId(webhookId))
if (dequal(incomingWebhook, localWebhook)) return
setLocalWebhook(incomingWebhook)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [webhooks])
Expand Down

2 comments on commit eef60fd

@vercel
Copy link

@vercel vercel bot commented on eef60fd Mar 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app

Please sign in to comment.