fix load all by Faris in tree master (#4543)

This commit is contained in:
Umair Sayed 2017-11-29 09:30:59 +05:30 committed by Rushabh Mehta
parent 91a87da6fb
commit e4eddb03d4

View file

@ -216,7 +216,7 @@ frappe.ui.TreeNode = Class.extend({
this.load();
},
reload_parent: function() {
this.parent_node.load_all();
this.parent_node && this.parent_node.load_all();
},
load_all: function(callback) {
var me = this;