- small changes inside dataset-detail.component.ts

This commit is contained in:
Arno Kaimbacher 2023-07-06 09:12:46 +02:00
parent 3faf538afd
commit d2c0fb72fd

View File

@ -43,9 +43,11 @@ export default class DatasetDetailComponent extends Vue {
created(): void { created(): void {
dayjs.extend(advancedFormat); dayjs.extend(advancedFormat);
if (!isNaN(Number(this.datasetId))) { if (!this.datasetId.includes(".")) {
// get datset by publish_id
this.getDataset(Number(this.datasetId)); this.getDataset(Number(this.datasetId));
} else { } else {
// get datset by doi_value
this.getDatasetByIdentifier(this.datasetId); this.getDatasetByIdentifier(this.datasetId);
} }
} }