File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/src/components/devtools Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ const AssetContentDisplay: React.FC<{ asset: any }> = ({ asset }) => {
253253 const renderContent = ( ) => {
254254 if ( asset . type === 'context' ) {
255255 // Check if content has the new structure with 'text' and 'entities'
256- if ( asset . content && typeof asset . content === 'object' && asset . content . text && asset . content . entities ) {
256+ if ( asset . content && typeof asset . content === 'object' ) {
257257 return (
258258 < VStack align = "stretch" spacing = { 3 } >
259259 { /* Render text as markdown */ }
@@ -266,11 +266,11 @@ const AssetContentDisplay: React.FC<{ asset: any }> = ({ asset }) => {
266266 maxHeight = "200px"
267267 overflowY = "auto"
268268 >
269- < Markdown content = { asset . content . text } />
269+ < Markdown content = { asset . content . text === '' ? '> Note: Text context is empty' : asset . content . text } />
270270 </ Box >
271271
272272 { /* Render entities as a list */ }
273- { asset . content . entities && asset . content . entities . length > 0 && (
273+ { (
274274 < Box
275275 bg = "gray.50"
276276 p = { 3 }
You can’t perform that action at this time.
0 commit comments