From 057df4188d9ca47492978d79d88711c816f98c5e Mon Sep 17 00:00:00 2001 From: wkeylin Date: Sun, 17 May 2026 10:54:12 +0800 Subject: [PATCH 1/2] fix: add optional chaining in AddRowColumnPlugin release to prevent errors --- packages/vtable-plugins/src/add-row-column.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/vtable-plugins/src/add-row-column.ts b/packages/vtable-plugins/src/add-row-column.ts index 485608a80e..2ca92b178e 100644 --- a/packages/vtable-plugins/src/add-row-column.ts +++ b/packages/vtable-plugins/src/add-row-column.ts @@ -457,13 +457,13 @@ export class AddRowColumnPlugin implements pluginsDefinition.IVTablePlugin { } // #endregion release() { - this.leftDotForAddColumn.remove(); - this.rightDotForAddColumn.remove(); - this.addIconForAddColumn.remove(); - this.addLineForAddColumn.remove(); - this.topDotForAddRow.remove(); - this.bottomDotForAddRow.remove(); - this.addIconForAddRow.remove(); - this.addLineForAddRow.remove(); + this.leftDotForAddColumn?.remove(); + this.rightDotForAddColumn?.remove(); + this.addIconForAddColumn?.remove(); + this.addLineForAddColumn?.remove(); + this.topDotForAddRow?.remove(); + this.bottomDotForAddRow?.remove(); + this.addIconForAddRow?.remove(); + this.addLineForAddRow?.remove(); } } From 4ce6d39dd46965084cbffa0072611c48923419a0 Mon Sep 17 00:00:00 2001 From: wkeylin Date: Sun, 17 May 2026 10:59:02 +0800 Subject: [PATCH 2/2] docs: update changlog of rush --- ...-column-plugin-release-error_2026-05-17-02-59.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vtable/fix-add-row-column-plugin-release-error_2026-05-17-02-59.json diff --git a/common/changes/@visactor/vtable/fix-add-row-column-plugin-release-error_2026-05-17-02-59.json b/common/changes/@visactor/vtable/fix-add-row-column-plugin-release-error_2026-05-17-02-59.json new file mode 100644 index 0000000000..723093a2dd --- /dev/null +++ b/common/changes/@visactor/vtable/fix-add-row-column-plugin-release-error_2026-05-17-02-59.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: add optional chaining in AddRowColumnPlugin release to prevent errors\n\n", + "type": "none", + "packageName": "@visactor/vtable" + } + ], + "packageName": "@visactor/vtable", + "email": "wangkyrin@gmail.com" +} \ No newline at end of file