@@ -77,9 +77,9 @@ const Logs: FunctionComponent<LogsProps> = ({
7777 </ Box >
7878 < Box flexDirection = "column" marginLeft = { 4 } >
7979 { appLog instanceof FunctionRunLog && (
80- < >
80+ < Box flexDirection = "column" >
8181 < Text > { appLog . logs } </ Text >
82- { appLog . inputQueryVariablesMetafieldKey && appLog . inputQueryVariablesMetafieldNamespace && (
82+ { appLog . inputQueryVariablesMetafieldKey && appLog . inputQueryVariablesMetafieldNamespace ? (
8383 < Box flexDirection = "column" marginTop = { 1 } >
8484 < Text bold > Input Query Variables:</ Text >
8585 < Box flexDirection = "row" marginLeft = { 1 } marginTop = { 1 } >
@@ -98,8 +98,8 @@ const Logs: FunctionComponent<LogsProps> = ({
9898 </ Text >
9999 </ Box >
100100 </ Box >
101- ) }
102- { appLog . input && (
101+ ) : null }
102+ { appLog . input ? (
103103 < Box flexDirection = "column" marginTop = { 1 } >
104104 < Text bold >
105105 Input < Text dimColor > ({ appLog . inputBytes } bytes):</ Text >
@@ -108,8 +108,8 @@ const Logs: FunctionComponent<LogsProps> = ({
108108 < Text > { prettyPrintJsonIfPossible ( appLog . input ) } </ Text >
109109 </ Box >
110110 </ Box >
111- ) }
112- { appLog . output && (
111+ ) : null }
112+ { appLog . output ? (
113113 < Box flexDirection = "column" marginTop = { 1 } >
114114 < Text bold >
115115 Output < Text dimColor > ({ appLog . outputBytes } bytes):</ Text >
@@ -118,41 +118,41 @@ const Logs: FunctionComponent<LogsProps> = ({
118118 < Text > { prettyPrintJsonIfPossible ( appLog . output ) } </ Text >
119119 </ Box >
120120 </ Box >
121- ) }
122- </ >
121+ ) : null }
122+ </ Box >
123123 ) }
124124 { appLog instanceof NetworkAccessResponseFromCacheLog && (
125- < >
125+ < Box flexDirection = "column" >
126126 < Text > Cache write time: { new Date ( appLog . cacheEntryEpochMs ) . toISOString ( ) } </ Text >
127127 < Text > Cache TTL: { appLog . cacheTtlMs / 1000 } s</ Text >
128128 < Text > HTTP request:</ Text >
129129 < Text > { prettyPrintJsonIfPossible ( appLog . httpRequest ) } </ Text >
130130 < Text > HTTP response:</ Text >
131131 < Text > { prettyPrintJsonIfPossible ( appLog . httpResponse ) } </ Text >
132- </ >
132+ </ Box >
133133 ) }
134134 { appLog instanceof NetworkAccessRequestExecutionInBackgroundLog && (
135- < >
135+ < Box flexDirection = "column" >
136136 < Text > Reason: { getBackgroundExecutionReasonMessage ( appLog . reason ) } </ Text >
137137 < Text > HTTP request:</ Text >
138138 < Text > { prettyPrintJsonIfPossible ( appLog . httpRequest ) } </ Text >
139- </ >
139+ </ Box >
140140 ) }
141141 { appLog instanceof NetworkAccessRequestExecutedLog && (
142- < >
142+ < Box flexDirection = "column" >
143143 < Text > Attempt: { appLog . attempt } </ Text >
144- { appLog . connectTimeMs && < Text > Connect time: { appLog . connectTimeMs } ms</ Text > }
145- { appLog . writeReadTimeMs && < Text > Write read time: { appLog . writeReadTimeMs } ms</ Text > }
144+ { appLog . connectTimeMs ? < Text > Connect time: { appLog . connectTimeMs } ms</ Text > : null }
145+ { appLog . writeReadTimeMs ? < Text > Write read time: { appLog . writeReadTimeMs } ms</ Text > : null }
146146 < Text > HTTP request:</ Text >
147147 < Text > { prettyPrintJsonIfPossible ( appLog . httpRequest ) } </ Text >
148- { appLog . httpResponse && (
149- < >
148+ { appLog . httpResponse ? (
149+ < Box flexDirection = "column" >
150150 < Text > HTTP response:</ Text >
151151 < Text > { prettyPrintJsonIfPossible ( appLog . httpResponse ) } </ Text >
152- </ >
153- ) }
154- { appLog . error && < Text > Error: { appLog . error } </ Text > }
155- </ >
152+ </ Box >
153+ ) : null }
154+ { appLog . error ? < Text > Error: { appLog . error } </ Text > : null }
155+ </ Box >
156156 ) }
157157 </ Box >
158158 </ Box >
0 commit comments