add icon for tool node in web app

This commit is contained in:
JzoNg 2024-03-28 21:47:10 +08:00
parent 05bb65bd94
commit 4eb9027510
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@ const Result: FC<IResultProps> = ({
const currentIndex = draft.tracing!.findIndex(trace => trace.node_id === data.node_id)
if (currentIndex > -1 && draft.tracing) {
draft.tracing[currentIndex] = {
...(draft.tracing[currentIndex].extras
? { extras: draft.tracing[currentIndex].extras }
: {}),
...data,
expand: !!data.error,
} as any