mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: Rewrite Front End cloud and posthog hooks using TypeScript (no-changelog) (#5491)
This commit is contained in:
@@ -4,7 +4,6 @@ import type { INodeUi } from '@/Interface';
|
||||
import RunDataSchemaItem from '@/components/RunDataSchemaItem.vue';
|
||||
import Draggable from '@/components/Draggable.vue';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { useWebhooksStore } from '@/stores/webhooks.store';
|
||||
import { telemetry } from '@/plugins/telemetry';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { isEmpty, runExternalHook } from '@/utils';
|
||||
@@ -27,7 +26,6 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
const draggingPath = ref<string>('');
|
||||
const ndvStore = useNDVStore();
|
||||
const webhooksStore = useWebhooksStore();
|
||||
const { getSchemaForExecutionData } = useDataSchema();
|
||||
|
||||
const schema = computed(() => getSchemaForExecutionData(props.data));
|
||||
@@ -59,7 +57,7 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
...mappingTelemetry,
|
||||
};
|
||||
|
||||
void runExternalHook('runDataJson.onDragEnd', webhooksStore, telemetryPayload);
|
||||
void runExternalHook('runDataJson.onDragEnd', telemetryPayload);
|
||||
|
||||
telemetry.track('User dragged data for mapping', telemetryPayload);
|
||||
}, 1000); // ensure dest data gets set if drop
|
||||
|
||||
Reference in New Issue
Block a user