From 19d2ba42f91ef52b79d60ae10c7e97399feeb830 Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Mon, 7 Oct 2024 13:48:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F:=20using=20any=20for=20`f?= =?UTF-8?q?etchOptions`=20data=20in=20`DirectoryDatasetPicker`=20because?= =?UTF-8?q?=20there=20is=20no=20model=20for=20the=20jstree=20response=20in?= =?UTF-8?q?=20the=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David López <46503462+davelopez@users.noreply.github.com> --- .../LibraryFolder/TopToolbar/DirectoryDatasetPicker.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/components/Libraries/LibraryFolder/TopToolbar/DirectoryDatasetPicker.vue b/client/src/components/Libraries/LibraryFolder/TopToolbar/DirectoryDatasetPicker.vue index 31e0d011a69..80423a10e85 100644 --- a/client/src/components/Libraries/LibraryFolder/TopToolbar/DirectoryDatasetPicker.vue +++ b/client/src/components/Libraries/LibraryFolder/TopToolbar/DirectoryDatasetPicker.vue @@ -13,7 +13,6 @@ import { import { computed, ref, watch } from "vue"; import { GalaxyApi } from "@/api"; -import { type components } from "@/api/schema"; import { type Option } from "@/components/Form/Elements/FormDrilldown/utilities"; import { type DetailedDatatypes, useDetailedDatatypes } from "@/composables/datatypes"; import { Toast } from "@/composables/toast"; @@ -37,7 +36,6 @@ const autoExtension = { descriptionUrl: "", }; -type ListUriResponse = components["schemas"]["ListUriResponse"]; type DbKey = { id: string; text: string }; type DbKeyList = DbKey[]; @@ -122,7 +120,7 @@ async function fetchOptions() { }, }); - options.value = mapDataToOptions(data as ListUriResponse); + options.value = mapDataToOptions(data); if (error) { errorMessage.value = errorMessageAsString(error, "Failed to load directories."); @@ -131,7 +129,7 @@ async function fetchOptions() { optionsLoading.value = false; } -function mapDataToOptions(data: ListUriResponse): Option[] { +function mapDataToOptions(data: any): Option[] { return data?.map((item: any) => { const option: Option = { name: item.text,