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