Skip to content

Commit

Permalink
fix(grid): should not hover deleted record
Browse files Browse the repository at this point in the history
  • Loading branch information
minlovehua committed Feb 21, 2025
1 parent 19a938e commit 505c379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/grid/src/utils/hover-cell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ export function getHoverCell(aiTable: AITable) {
if (!recordId || !fieldId) {
return;
}
const record = aiTable.recordsMap()[recordId!];
const field = aiTable.fieldsMap()[fieldId!];

if (!field || !recordId || !fieldId) {
if (!record || !field || !recordId || !fieldId) {
return;
}
const cellValue = AITableQueries.getFieldValue(aiTable, [recordId, fieldId]);
Expand Down

0 comments on commit 505c379

Please sign in to comment.