From 6a66c86a8ba7543f771d16d33de71d1d55f88899 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 10 Feb 2020 14:46:46 +0800 Subject: [PATCH] Roo/data/ArrayReader.js --- Roo/data/ArrayReader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roo/data/ArrayReader.js b/Roo/data/ArrayReader.js index 8623561903..ffbfe115c5 100644 --- a/Roo/data/ArrayReader.js +++ b/Roo/data/ArrayReader.js @@ -87,12 +87,12 @@ Roo.extend(Roo.data.ArrayReader, Roo.data.JsonReader, { }, /** * using 'cn' the nested child reader read the child array into it's child stores. - * + * @param {Object} rec The record with a 'children array */ loadDataFromChildren: function(rec) { // expect rec just to be an array.. eg [a,b,c, [...] << cn ] - return this.loadData(rec.data.cn); + return this.loadData(typeof(rec.data.cn) == 'undefined' ? '' : rec.data.cn); } -- 2.39.2