diff --git a/package.json b/package.json index 59465f8..1f50fbd 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", diff --git a/src/ListTabulator/index.ts b/src/ListTabulator/index.ts index 277b018..1e5c111 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); }