Skip to content

Commit 49f7dff

Browse files
committed
fix(snapchatPixel): broken option merging when mocked
Fixes #440
1 parent 213619e commit 49f7dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/registry/snapchat-pixel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ declare global {
6666
export const SnapTrPixelOptions = object({
6767
id: string(),
6868
trackPageView: optional(boolean()),
69-
...InitObjectPropertiesSchema.entries,
69+
...(InitObjectPropertiesSchema?.entries || {}),
7070
})
7171
export type SnapTrPixelInput = RegistryScriptInput<typeof SnapTrPixelOptions, true, false, false>
7272

0 commit comments

Comments
 (0)