fix: judge if has editor

This commit is contained in:
fangsmile 2024-10-31 17:55:11 +08:00
parent 7396c9dd58
commit d0d88325b7

View File

@ -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;