File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export function DeliveryToken (http, data = {}) {
101101}
102102
103103export function DeliveryTokenCollection ( http , data ) {
104- const obj = cloneDeep ( data . tokens )
104+ const obj = cloneDeep ( data . tokens ) || [ ]
105105 const deliveryTokenCollection = obj . map ( ( userdata ) => {
106106 return new DeliveryToken ( http , { token : userdata , stackHeaders : data . stackHeaders } )
107107 } )
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export function Locale (http, data = {}) {
9898}
9999
100100export function LocaleCollection ( http , data ) {
101- const obj = cloneDeep ( data . locales )
101+ const obj = cloneDeep ( data . locales ) || [ ]
102102 const localeCollection = obj . map ( ( userdata ) => {
103103 return new Locale ( http , { locale : userdata , stackHeaders : data . stackHeaders } )
104104 } )
You can’t perform that action at this time.
0 commit comments