Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
keturiosakys committed Oct 11, 2024
1 parent 59bb8e3 commit fc1e93d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion studio/src/components/Log/LogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function LogHeader(props: Props) {
)}

<div className="font-mono text-xs flex-grow truncate">
{typeof parsedMessage === "string" ? parsedMessage : (message ?? "")}
{typeof parsedMessage === "string" ? parsedMessage : message ?? ""}
</div>
{formattedTimestamp && (
<div className="font-mono text-xs text-right whitespace-nowrap ml-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useReplayRequest({ span }: { span?: OtelSpan }) {
const replayPath = url.pathname;

const requestHeaders = useMemo<Record<string, string>>(() => {
return span ? (getRequestHeaders(span) ?? {}) : {};
return span ? getRequestHeaders(span) ?? {} : {};
}, [span]);

const filterReplayHeaders = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/RequestorPage/LogsTable/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function neonSpanToEvent(span: OtelSpan): NeonEvent {
responseBody && isJson(responseBody) ? safeParseJson(responseBody) : null;
const rowCount =
parsedResponseBody && "rowCount" in parsedResponseBody
? (Number.parseInt(parsedResponseBody.rowCount ?? "") ?? null)
? Number.parseInt(parsedResponseBody.rowCount ?? "") ?? null
: null;

// E.g., "SELECT"
Expand Down

0 comments on commit fc1e93d

Please sign in to comment.