From 71df845e34644f80e16d030c4d63aab974e3f364 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 5 Sep 2024 07:57:02 +0100 Subject: [PATCH] fix: exclude push from auto-generated snippet (#24798) --- frontend/src/lib/components/JSSnippet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/JSSnippet.tsx b/frontend/src/lib/components/JSSnippet.tsx index 5c0c32bbdb9b4..05cbf0cfb6139 100644 --- a/frontend/src/lib/components/JSSnippet.tsx +++ b/frontend/src/lib/components/JSSnippet.tsx @@ -13,7 +13,7 @@ export function snippetFunctions(): string { if ( typeof posthogPrototype[key] === 'function' && !key.startsWith('_') && - !['constructor', 'toString'].includes(key) + !['constructor', 'toString', 'push'].includes(key) ) { methods.push(key) }