From b230b345d07d31b5cee2bc331368a21a6f789cdb Mon Sep 17 00:00:00 2001 From: Ognjen Cirkovic Date: Sat, 9 Apr 2022 14:11:45 +0200 Subject: Prikaz prvih 10. --- .../src/app/_elements/add-new-dataset/add-new-dataset.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontend/src/app/_elements') diff --git a/frontend/src/app/_elements/add-new-dataset/add-new-dataset.component.ts b/frontend/src/app/_elements/add-new-dataset/add-new-dataset.component.ts index c5e6558a..6087b6a5 100644 --- a/frontend/src/app/_elements/add-new-dataset/add-new-dataset.component.ts +++ b/frontend/src/app/_elements/add-new-dataset/add-new-dataset.component.ts @@ -61,7 +61,10 @@ export class AddNewDatasetComponent { console.log('Result', result); if (result.constructor === Array) { - this.csvRecords = result; + if(this.dataset.hasHeader) + this.csvRecords = result.splice(0,11); + else + this.csvRecords=result.splice(0,10); if (this.dataset.hasHeader) this.rowsNumber = this.csvRecords.length - 1; else -- cgit v1.2.3