From 7c3f7679f5b1da3bc064f8ec66066eded2f04cee Mon Sep 17 00:00:00 2001 From: Robin Delattre Date: Sun, 5 Jan 2025 20:52:47 +0100 Subject: [PATCH 1/2] check if data set has this.data.meta permit compatibility with previous data set --- src/ListTabulator/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ListTabulator/index.ts b/src/ListTabulator/index.ts index 277b018e..1e5c1112 100644 --- a/src/ListTabulator/index.ts +++ b/src/ListTabulator/index.ts @@ -188,14 +188,14 @@ export default class ListTabulator { /** * Set start property value from initial data */ - if ('start' in this.data.meta && this.data.meta.start !== undefined) { + if (this.data.meta && 'start' in this.data.meta && this.data.meta.start !== undefined) { this.changeStartWith(this.data.meta.start); } /** * Set counterType value from initial data */ - if ('counterType' in this.data.meta && this.data.meta.counterType !== undefined) { + if (this.data.meta && 'counterType' in this.data.meta && this.data.meta.counterType !== undefined) { this.changeCounters(this.data.meta.counterType); } From f32e8d1166849f8b6510f693bd18bad368f6c43e Mon Sep 17 00:00:00 2001 From: Robin Delattre Date: Wed, 15 Jan 2025 06:00:14 +0100 Subject: [PATCH 2/2] Increment patch version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 59465f85..1f50fbd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/list", - "version": "2.0.2", + "version": "2.0.3", "keywords": [ "codex editor", "list",