Skip to content

Commit

Permalink
fix: remove segment
Browse files Browse the repository at this point in the history
  • Loading branch information
mutdmour committed Jun 27, 2024
1 parent a6e201b commit 6f8c110
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/editor-ui/src/components/ParameterInputFull.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import ParameterOptions from '@/components/ParameterOptions.vue';
import { useI18n } from '@/composables/useI18n';
import { useToast } from '@/composables/useToast';
import { useNDVStore } from '@/stores/ndv.store';
import { useSegment } from '@/stores/segment.store';
import { getMappedResult } from '@/utils/mappingUtils';
import { hasExpressionMapping, hasOnlyListMode, isValueExpression } from '@/utils/nodeTypesUtils';
import { isResourceLocatorValue } from '@/utils/typeGuards';
Expand Down Expand Up @@ -272,9 +271,6 @@ function onDrop(newParamValue: string) {
hasExpressionMapping(prevValue),
success: true,
});
const segment = useSegment();
segment.track(segment.EVENTS.MAPPED_DATA);
}
forceShowExpression.value = false;
}, 200);
Expand Down
2 changes: 0 additions & 2 deletions packages/editor-ui/src/composables/useCanvasOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import { useI18n } from '@/composables/useI18n';
import { useToast } from '@/composables/useToast';
import * as NodeViewUtils from '@/utils/nodeViewUtils';
import { v4 as uuid } from 'uuid';
import { useSegment } from '@/stores/segment.store';
import type { Ref } from 'vue';
import { computed } from 'vue';
import { useCredentialsStore } from '@/stores/credentials.store';
Expand Down Expand Up @@ -650,7 +649,6 @@ export function useCanvasOperations({
});
} else {
void externalHooks.run('nodeView.addNodeButton', { nodeTypeName: node.type });
useSegment().trackAddedTrigger(node.type);
const trackProperties: ITelemetryTrackProperties = {
node_type: node.type,
node_version: newNodeData.typeVersion,
Expand Down
2 changes: 0 additions & 2 deletions packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { usePushConnectionStore } from '@/stores/pushConnection.store';
import { useRootStore } from '@/stores/root.store';
import { useSegment } from '@/stores/segment.store';
import { useSettingsStore } from '@/stores/settings.store';
import { useTagsStore } from '@/stores/tags.store';
import { useTemplatesStore } from '@/stores/templates.store';
Expand Down Expand Up @@ -2696,7 +2695,6 @@ export default defineComponent({
});
} else {
void this.externalHooks.run('nodeView.addNodeButton', { nodeTypeName });
useSegment().trackAddedTrigger(nodeTypeName);
const trackProperties: ITelemetryTrackProperties = {
node_type: nodeTypeName,
node_version: newNodeData.typeVersion,
Expand Down

0 comments on commit 6f8c110

Please sign in to comment.