Skip to content

Commit bd953bb

Browse files
committed
minor text context edit in team catalog
1 parent a0bd56b commit bd953bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/devtools/TeamMemory.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)