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;