Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc845ae

Browse files
committedMar 18, 2025·
fix: hide run parameters that are empty
1 parent d21c7de commit dc845ae

File tree

1 file changed

+5
-7
lines changed
  • app/web_ui/src/routes/(app)/dataset/[project_id]/[task_id]/[run_id]/run

1 file changed

+5
-7
lines changed
 

‎app/web_ui/src/routes/(app)/dataset/[project_id]/[task_id]/[run_id]/run/+page.svelte

+5-7
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,22 @@
4949
)
5050
}
5151
52+
const model_id = run?.output?.source?.properties?.model_name
53+
5254
model_props = Object.fromEntries(
5355
Object.entries({
5456
ID: run?.id || undefined,
5557
"Input Source":
5658
"" +
5759
run?.input_source?.type.charAt(0).toUpperCase() +
5860
run?.input_source?.type.slice(1),
59-
"Output Model": model_name(
60-
"" + run?.output?.source?.properties?.model_name,
61-
$model_info,
62-
),
61+
"Output Model": model_name(model_id, $model_info),
6362
"Model Provider": run?.output?.source?.properties?.model_provider,
64-
Prompt: prompt_name_from_id(prompt_id),
63+
Prompt: prompt_id && prompt_name_from_id(prompt_id),
6564
"Created By": run?.input_source?.properties?.created_by,
6665
"Created At": formatDate(run?.created_at),
6766
Topic: topic_path,
68-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
69-
}).filter(([_, value]) => value !== undefined),
67+
}).filter(([_, value]) => value !== undefined && value !== ""),
7068
)
7169
}
7270

0 commit comments

Comments
 (0)
Please sign in to comment.