diff --git a/src/core/services/utils/utils.ts b/src/core/services/utils/utils.ts index 6f71dd6ee..35ae3d503 100644 --- a/src/core/services/utils/utils.ts +++ b/src/core/services/utils/utils.ts @@ -1312,11 +1312,7 @@ export class CoreUtilsProvider { keyName: string, valueName: string, keyPrefix?: string, - ): {[name: string]: T} | undefined { - if (!objects) { - return; - } - + ): {[name: string]: T} { const prefixSubstr = keyPrefix ? keyPrefix.length : 0; const mapped = {}; objects.forEach((item) => {