mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
fixes #2252 add null check for parent_node
...before accessing properties
This commit is contained in:
parent
75da48dadd
commit
29b1c32fbc
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ $(document).ready(() => {
|
|||
success: function (raw_data) {
|
||||
data = jQuery.parseJSON(raw_data);
|
||||
var parent_node = $('.tree').tree('getNodeById', newAlbumParent);
|
||||
if (parent_node.load_on_demand && parent_node.haveChildren) {
|
||||
if (parent_node && parent_node.load_on_demand && parent_node.haveChildren) {
|
||||
loadOnDemand(parent_node);
|
||||
}
|
||||
if (parent_node) openNodeOnDemand(parent_node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue