forked from geolba/tethys.frontend
- small bug in dataset-detail.component.ts
This commit is contained in:
parent
4f1ea85982
commit
3faf538afd
|
@ -21,7 +21,7 @@ import DataMetricsBadge from "@/components/datacite/DataMetricsBadge.vue";
|
||||||
})
|
})
|
||||||
export default class DatasetDetailComponent extends Vue {
|
export default class DatasetDetailComponent extends Vue {
|
||||||
@Prop()
|
@Prop()
|
||||||
datasetId!: number;
|
datasetId!: string;
|
||||||
|
|
||||||
// @Prop()
|
// @Prop()
|
||||||
// identifier!: string;
|
// identifier!: string;
|
||||||
|
@ -43,8 +43,8 @@ export default class DatasetDetailComponent extends Vue {
|
||||||
|
|
||||||
created(): void {
|
created(): void {
|
||||||
dayjs.extend(advancedFormat);
|
dayjs.extend(advancedFormat);
|
||||||
if (typeof this.datasetId === "number") {
|
if (!isNaN(Number(this.datasetId))) {
|
||||||
this.getDataset(this.datasetId);
|
this.getDataset(Number(this.datasetId));
|
||||||
} else {
|
} else {
|
||||||
this.getDatasetByIdentifier(this.datasetId);
|
this.getDatasetByIdentifier(this.datasetId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user