style(ui): format log drawer lookup error changes

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
milan 2026-07-24 22:40:50 +00:00
parent a01504b270
commit d5297d734a
2 changed files with 10 additions and 2 deletions

View file

@ -74,7 +74,11 @@ export function LogViewer({
? moment(endDate).endOf("day").utc().format("YYYY-MM-DD HH:mm:ss")
: moment().utc().format("YYYY-MM-DD HH:mm:ss");
const { data: fullLogResponse, isFetching: isFetchingFullLog, isError: isFullLogError } = useQuery({
const {
data: fullLogResponse,
isFetching: isFetchingFullLog,
isError: isFullLogError,
} = useQuery({
queryKey: ["spend-log-by-request", selectedRequestId, startTime, endTime],
queryFn: async () => {
if (!accessToken || !selectedRequestId) return null;

View file

@ -128,7 +128,11 @@ export function LogDetailsDrawer({
const [isSidebarCollapsed, setIsSidebarCollapsed] = useState(false);
const [copiedLeftPanelId, setCopiedLeftPanelId] = useState(false);
const { data: sessionData, isFetching: isFetchingSession, isError: isSessionError } = useQuery({
const {
data: sessionData,
isFetching: isFetchingSession,
isError: isSessionError,
} = useQuery({
queryKey: ["sessionLogs", sessionId],
queryFn: async () => {
if (!sessionId || !accessToken) return { logs: [] as LogEntry[], total: 0 };