You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/12/11 21:54:51 UTC

(superset) branch scarf-pixel updated: moving const

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch scarf-pixel
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/scarf-pixel by this push:
     new a3b91cd670 moving const
a3b91cd670 is described below

commit a3b91cd6706860322135d30bb9e721724f069e8f
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Mon Dec 11 14:54:43 2023 -0700

    moving const
---
 superset-frontend/src/components/TelemetryPixel/index.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/components/TelemetryPixel/index.tsx b/superset-frontend/src/components/TelemetryPixel/index.tsx
index cc3876e6d7..660a6dd7ff 100644
--- a/superset-frontend/src/components/TelemetryPixel/index.tsx
+++ b/superset-frontend/src/components/TelemetryPixel/index.tsx
@@ -37,13 +37,14 @@ interface TelemetryPixelProps {
  * @returns {JSX.Element | null} The rendered TelemetryPixel component.
  */
 
+const PIXEL_ID = '0d3461e1-abb1-4691-a0aa-5ed50de66af0';
+
 const TelemetryPixel = ({
   version = 'unknownVersion',
   sha = 'unknownSHA',
   build = 'unknownBuild',
 }: TelemetryPixelProps): React.ReactElement | null => {
-  const pixelId = '0d3461e1-abb1-4691-a0aa-5ed50de66af0';
-  const pixelPath = `https://apachesuperset.gateway.scarf.sh/pixel/${pixelId}/${version}/${sha}/${build}`;
+  const pixelPath = `https://apachesuperset.gateway.scarf.sh/pixel/${PIXEL_ID}/${version}/${sha}/${build}`;
 
   console.warn(
     'scarf',