mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Fix switching from v2 to v1 (#12050)
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
Some checks failed
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Has been cancelled
This commit is contained in:
parent
b145f52972
commit
5c76de324c
|
@ -36,6 +36,10 @@ export function useNodeViewVersionSwitcher() {
|
||||||
function switchNodeViewVersion() {
|
function switchNodeViewVersion() {
|
||||||
const toVersion = nodeViewVersion.value === '2' ? '1' : '2';
|
const toVersion = nodeViewVersion.value === '2' ? '1' : '2';
|
||||||
|
|
||||||
|
if (!nodeViewVersionMigrated.value) {
|
||||||
|
nodeViewVersionMigrated.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
telemetry.track('User switched canvas version', {
|
telemetry.track('User switched canvas version', {
|
||||||
to_version: toVersion,
|
to_version: toVersion,
|
||||||
});
|
});
|
||||||
|
@ -49,7 +53,6 @@ export function useNodeViewVersionSwitcher() {
|
||||||
}
|
}
|
||||||
|
|
||||||
switchNodeViewVersion();
|
switchNodeViewVersion();
|
||||||
nodeViewVersionMigrated.value = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue