Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
This commit is contained in:
parent
edea08718c
commit
fbe4bdaa9e
1 changed files with 2 additions and 2 deletions
|
|
@ -319,7 +319,7 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
|
|||
}
|
||||
|
||||
get_parent_name_of_selected_children() {
|
||||
if (!this.child_datatable.datamanager.rows.length) return [];
|
||||
if (!this.child_datatable || !this.child_datatable.datamanager.rows.length) return [];
|
||||
|
||||
let parent_names = this.child_datatable.rowmanager.checkMap.reduce((parent_names, checked, index) => {
|
||||
if (checked == 1) {
|
||||
|
|
@ -333,7 +333,7 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
|
|||
}
|
||||
|
||||
get_selected_child_names() {
|
||||
if (!this.child_datatable.datamanager.rows.length) return [];
|
||||
if (!this.child_datatable || !this.child_datatable.datamanager.rows.length) return [];
|
||||
|
||||
let checked_names = this.child_datatable.rowmanager.checkMap.reduce((checked_names, checked, index) => {
|
||||
if (checked == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue