Merge pull request #25778 from akhilnarang/fix-grid-row-removal-crash
fix(grid): don't crash if row doesn't exist
This commit is contained in:
commit
45934f5dfb
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ export default class Grid {
|
|||
this.df.data = this.get_data();
|
||||
this.df.data = this.df.data.filter((row) => row.idx != doc.idx);
|
||||
}
|
||||
this.grid_rows_by_docname[doc.name].remove();
|
||||
this.grid_rows_by_docname[doc.name]?.remove();
|
||||
dirty = true;
|
||||
});
|
||||
tasks.push(() => frappe.timeout(0.1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue