Skip to content
Snippets Groups Projects
Commit b0eaf754 authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

bug fix

parent cb9a13f2
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ import { MappingService } from './service/mapping.service';
templateUrl: './mapping.component.html',
styleUrls: ['./mapping.component.scss']
})
export class MappingComponent implements OnInit, OnDestroy {
export class MappingComponent implements OnInit {
addDistribution = false
check = false;
......@@ -473,6 +473,7 @@ export class MappingComponent implements OnInit, OnDestroy {
this.mappingService.downloadFile(datasetPathArray);
this.mappingService.postFile(datasetPathArray, this.catalogId).subscribe();
}
openFileInputDialog(): void {
......@@ -613,13 +614,7 @@ export class MappingComponent implements OnInit, OnDestroy {
return this.vocabularies.find((vocabulary: Property) => vocabulary.uri === uri).card;
}
ngOnDestroy(): void {
let datasetPathArray = this.createObjectToExport();
if (datasetPathArray.length > 0) {
this.mappingService.postFile(datasetPathArray, this.catalogId).subscribe();
}
}
private getDistributionEmpty(properties: string, datasetId: string): string {
return `@prefix dcat: <http://www.w3.org/ns/dcat#>.
@prefix dct: <http://purl.org/dc/terms/>.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment