fix: [code-1371]: fix ui on log blobs (#994)

This commit is contained in:
Calvin Lee 2024-01-29 18:22:40 +00:00 committed by Harness
parent b0b0625e79
commit e62a96dd7e
3 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,8 @@ export interface AppProps {
usePermissionTranslate: Unknown
useGenerateToken: Unknown
useExecutionDataHook: Unknown
useLogsContentHook: Unknown
useLogsContent: Unknown
useLogsStreaming: Unknown
}>
currentUser: Required<TypesUser>

View File

@ -35,7 +35,8 @@ ReactDOM.render(
hooks={{
usePermissionTranslate: noop,
useExecutionDataHook: noop,
useLogsContentHook: noop
useLogsContent: noop,
useLogsStreaming: noop
}}
currentUser={defaultCurrentUser}
currentUserProfileURL=""

View File

@ -83,7 +83,7 @@ const LogTerminal: React.FC<LogViewerProps> = ({
}, [content, stepNameLogKeyMap, selectedItemData])
const getLogData = (logBaseKey: string) => {
const logContent = hooks?.useLogsContentHook([logBaseKey])
const logContent = hooks?.useLogsContent([logBaseKey])
return logContent.blobDataCur
}
// State to manage expanded states of all containers