Skip to content

Commit

Permalink
fix(gaas-ui): Display dataset name
Browse files Browse the repository at this point in the history
  • Loading branch information
rplanel committed Jan 16, 2025
1 parent 40d5b04 commit 00df8b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gaas-ui/app/pages/datasets/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ const datasets = computed<Dataset[] | undefined>(() => {
return dataVal.map((d) => {
let size: string | undefined
let rawSize: number | undefined
let name: string | null | undefined
if (
storageObjectsMapVal
&& storageObjectsMapVal.has(d.storage_object_id)
) {
name = storageObjectsMapVal.get(d.storage_object_id)?.name
const metadata = fileMetadataSchema.passthrough().parse(storageObjectsMapVal.get(
d.storage_object_id,
)?.metadata)
Expand All @@ -138,7 +140,7 @@ const datasets = computed<Dataset[] | undefined>(() => {
}
}
return {
name: d.dataset_name,
name,
size,
rawSize,
}
Expand Down

0 comments on commit 00df8b7

Please sign in to comment.