diff --git a/packages/core/src/data_sources/model/data_collection/ComponentDataCollection.ts b/packages/core/src/data_sources/model/data_collection/ComponentDataCollection.ts index 380ec7737..c215dc244 100644 --- a/packages/core/src/data_sources/model/data_collection/ComponentDataCollection.ts +++ b/packages/core/src/data_sources/model/data_collection/ComponentDataCollection.ts @@ -55,8 +55,8 @@ export default class ComponentDataCollection extends Component { getItemsCount() { const items = this.getDataSourceItems(); - const startIndex = Math.max(0, this.getConfigStartIndex() || 0); - const configEndIndex = this.getConfigEndIndex() || Number.MAX_VALUE; + const startIndex = Math.max(0, this.getConfigStartIndex() ?? 0); + const configEndIndex = this.getConfigEndIndex() ?? Number.MAX_VALUE; const endIndex = Math.min(items.length - 1, configEndIndex); const count = endIndex - startIndex + 1;