diff --git a/opensilex-front/front/src/components/data/DataFilesList.vue b/opensilex-front/front/src/components/data/DataFilesList.vue index ec45b6a14..a58288279 100644 --- a/opensilex-front/front/src/components/data/DataFilesList.vue +++ b/opensilex-front/front/src/components/data/DataFilesList.vue @@ -201,11 +201,11 @@ export default class DataFilesList extends Vue { /** * Construct paths for each target's UriLink components according to their type. */ - loadObjectsPath() { + private loadObjectsPath(): Promise { // ensure that at least one object has been loaded (in case where all data in the page have no target) let objectURIs = Object.keys(this.objects); if (!objectURIs || objectURIs.length == 0) { - return; + return Promise.resolve(); } return this.ontologyService diff --git a/opensilex-front/front/src/components/data/DataList.vue b/opensilex-front/front/src/components/data/DataList.vue index db552e576..03751b67f 100644 --- a/opensilex-front/front/src/components/data/DataList.vue +++ b/opensilex-front/front/src/components/data/DataList.vue @@ -334,12 +334,12 @@ export default class DataList extends Vue { /** * Construct paths for each target's UriLink components according to their type. */ - loadObjectsPath() { + private loadObjectsPath(): Promise { // ensure that at least one object has been loaded (in case where all data in the page have no target) let objectURIs = Object.keys(this.objects); if (!objectURIs || objectURIs.length == 0) { - return; + return Promise.resolve(); } return this.ontologyService