Skip to content

EspoCRM – Open Source CRM Application

Fix

Yurii753fc00a9908
diff --git a/client/src/collection.ts b/client/src/collection.ts
index 1b9405ed5b..ac255e9b9f 100644
--- a/client/src/collection.ts
+++ b/client/src/collection.ts
@@ -374,7 +374,8 @@ export default class Collection<TModel extends Model = Model> {
models = Array.isArray(models) ? models.slice() : [models];
- let at = options.at ?? 0;
+ // Should not undefined if not set.
+ let at = options.at;
if (at > this.length) {
at = this.length;