Skip to content

Commit 1e87653

Browse files
committed
style: apply prettier formatting to trajectory.js
1 parent c7e029e commit 1e87653

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

codeclash/viewer/static/js/trajectory.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ function createMessageElement(message, index) {
133133
// extra.actions / tool_calls instead of in a ```bash block in the text, so they need
134134
// their own renderer. v1 messages have neither and fall through to the text paths below.
135135
const toolActions =
136-
message.extra && Array.isArray(message.extra.actions) ? message.extra.actions : [];
137-
const hasToolCalls = Array.isArray(message.tool_calls) && message.tool_calls.length > 0;
136+
message.extra && Array.isArray(message.extra.actions)
137+
? message.extra.actions
138+
: [];
139+
const hasToolCalls =
140+
Array.isArray(message.tool_calls) && message.tool_calls.length > 0;
138141
if (toolActions.length > 0 || hasToolCalls) {
139142
messageContent.innerHTML = createToolCallContentHTML(message);
140143
} else if (typeof message.content === "string") {

0 commit comments

Comments
 (0)