refactor: unify data preparations and research input snapshots
Deploy production / deploy (push) Successful in 53s
Deploy production / deploy (push) Successful in 53s
This commit is contained in:
@@ -62,19 +62,28 @@ export function SourceDetails({
|
||||
打开研究会话
|
||||
</Button>
|
||||
)}
|
||||
{source.template_input_id && (
|
||||
{[
|
||||
...new Set([
|
||||
...(source.input_snapshot_ids ?? []),
|
||||
...(source.input_snapshot_id ? [source.input_snapshot_id] : []),
|
||||
]),
|
||||
].map((id, index) => (
|
||||
<Button
|
||||
key={id}
|
||||
onClick={() =>
|
||||
onAction({
|
||||
type: "open_research_input",
|
||||
input_id: source.template_input_id!,
|
||||
input_id: id,
|
||||
nonce: Date.now(),
|
||||
})
|
||||
}
|
||||
>
|
||||
查看研究输入
|
||||
{(source.input_snapshot_ids?.length ?? 0) > 1
|
||||
? ` ${index + 1}`
|
||||
: ""}
|
||||
</Button>
|
||||
)}
|
||||
))}
|
||||
{source.parent_run_id && (
|
||||
<Button
|
||||
onClick={() =>
|
||||
|
||||
Reference in New Issue
Block a user