mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Fix switching from v2 to v1 (#12050)
This commit is contained in:
parent
c24602f0cd
commit
1d0c4e0cea
|
@ -36,6 +36,10 @@ export function useNodeViewVersionSwitcher() {
|
|||
function switchNodeViewVersion() {
|
||||
const toVersion = nodeViewVersion.value === '2' ? '1' : '2';
|
||||
|
||||
if (!nodeViewVersionMigrated.value) {
|
||||
nodeViewVersionMigrated.value = true;
|
||||
}
|
||||
|
||||
telemetry.track('User switched canvas version', {
|
||||
to_version: toVersion,
|
||||
});
|
||||
|
@ -49,7 +53,6 @@ export function useNodeViewVersionSwitcher() {
|
|||
}
|
||||
|
||||
switchNodeViewVersion();
|
||||
nodeViewVersionMigrated.value = true;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue