From d0d88325b7d9e196bb5b3dfb830469571dbf9f5e Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Thu, 31 Oct 2024 17:55:11 +0800 Subject: [PATCH] fix: judge if has editor --- packages/vtable/src/core/record-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vtable/src/core/record-helper.ts b/packages/vtable/src/core/record-helper.ts index b40ff6c75..d06103c05 100644 --- a/packages/vtable/src/core/record-helper.ts +++ b/packages/vtable/src/core/record-helper.ts @@ -163,7 +163,7 @@ export function listTableChangeCellValues( const editor = table.getEditor(startCol + j, startRow + i); const oldValue = oldValues[i][j]; const value = rowValues[j]; - const maybePromiseOrValue = editor.validateValue?.(value, oldValue) ?? true; + const maybePromiseOrValue = editor?.validateValue?.(value, oldValue) ?? true; if (isPromise(maybePromiseOrValue)) { //TODO 处理promise的情况 isCanChange = true;