Add undefined check to gr-access-behavior
Change-Id: Ifbea06190478c56d1fb059b266ad4ecb21b4ee12
This commit is contained in:
@@ -142,6 +142,7 @@ limitations under the License.
|
|||||||
* object.
|
* object.
|
||||||
*/
|
*/
|
||||||
toSortedArray(obj) {
|
toSortedArray(obj) {
|
||||||
|
if (!obj) { return []; }
|
||||||
return Object.keys(obj).map(key => {
|
return Object.keys(obj).map(key => {
|
||||||
return {
|
return {
|
||||||
id: key,
|
id: key,
|
||||||
|
|||||||
Reference in New Issue
Block a user