Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: copied record history cursor overflow

k6sdevbob0a48186ce4a7
diff --git a/packages/graphic-walker/package.json b/packages/graphic-walker/package.json
index 8c04857c..0726af49 100644
--- a/packages/graphic-walker/package.json
+++ b/packages/graphic-walker/package.json
@@ -1,6 +1,6 @@
{
"name": "@kanaries/graphic-walker",
- "version": "0.2.15",
+ "version": "0.2.16",
"scripts": {
"dev:front_end": "vite --host",
"dev": "npm run dev:front_end",
diff --git a/packages/graphic-walker/src/models/visSpecHistory.ts b/packages/graphic-walker/src/models/visSpecHistory.ts
index 88119d33..1b11d964 100644
--- a/packages/graphic-walker/src/models/visSpecHistory.ts
+++ b/packages/graphic-walker/src/models/visSpecHistory.ts
@@ -130,6 +130,7 @@ export class VisSpecWithHistory {
public clone () {
const nextVSWH = new VisSpecWithHistory(this.frame);
+ nextVSWH.snapshots = this.snapshots.slice().map(s => ({ ...s }));
nextVSWH.cursor = this.cursor;
return nextVSWH;
}