⚡ (pixel) Add skip initialization option
This commit is contained in:
@@ -6,7 +6,8 @@ export const executePixelBlock = (
|
||||
{ typebot: { variables }, result }: SessionState,
|
||||
block: PixelBlock
|
||||
): ExecuteIntegrationResponse => {
|
||||
if (!result) return { outgoingEdgeId: block.outgoingEdgeId }
|
||||
if (!result || !block.options.pixelId || !block.options.eventType)
|
||||
return { outgoingEdgeId: block.outgoingEdgeId }
|
||||
const pixel = deepParseVariables(variables, {
|
||||
guessCorrectTypes: true,
|
||||
removeEmptyStrings: true,
|
||||
|
||||
@@ -455,7 +455,9 @@ const parseStartClientSideAction = (
|
||||
pixelId: (
|
||||
blocks.find(
|
||||
(block) =>
|
||||
block.type === IntegrationBlockType.PIXEL && block.options.pixelId
|
||||
block.type === IntegrationBlockType.PIXEL &&
|
||||
block.options.pixelId &&
|
||||
block.options.isInitSkip !== true
|
||||
) as PixelBlock | undefined
|
||||
)?.options.pixelId,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user