mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Adjust Ask AI tracking events & pass NDV session id (no-changelog) (#7027)
Github issue / Community forum post (link here to close automatically): --------- Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import type {
|
||||
} from '@/Interface';
|
||||
import type { INodeIssues, IRunData } from 'n8n-workflow';
|
||||
import { defineStore } from 'pinia';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { useWorkflowsStore } from './workflows.store';
|
||||
|
||||
export const useNDVStore = defineStore(STORES.NDV, {
|
||||
@@ -163,7 +164,7 @@ export const useNDVStore = defineStore(STORES.NDV, {
|
||||
};
|
||||
},
|
||||
setNDVSessionId(): void {
|
||||
this.sessionId = `ndv-${Math.random().toString(36).slice(-8)}`;
|
||||
this.sessionId = `ndv-${uuid()}`;
|
||||
},
|
||||
resetNDVSessionId(): void {
|
||||
this.sessionId = '';
|
||||
|
||||
Reference in New Issue
Block a user