mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: fixed the agents list the show updateAt time error (#12103)
* feat: refactor community user pages * feat: add the agents-group like in social types * feat: add the user favoitor filter * fix: slove the agents list show the updateAt time
This commit is contained in:
@@ -62,6 +62,7 @@ export interface DiscoverAssistantItem extends Omit<LobeAgentSettings, 'meta'>,
|
||||
status?: AgentStatus;
|
||||
tokenUsage: number;
|
||||
type?: AgentType;
|
||||
updatedAt?: string;
|
||||
userName?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ const styles = createStaticStyles(({ css, cssVar }) => {
|
||||
const AssistantItem = memo<DiscoverAssistantItem>(
|
||||
({
|
||||
createdAt,
|
||||
updatedAt,
|
||||
author,
|
||||
avatar,
|
||||
title,
|
||||
@@ -225,7 +226,7 @@ const AssistantItem = memo<DiscoverAssistantItem>(
|
||||
<Icon icon={ClockIcon} size={14} />
|
||||
<PublishedTime
|
||||
className={styles.secondaryDesc}
|
||||
date={createdAt}
|
||||
date={updatedAt || createdAt}
|
||||
template={'MMM DD, YYYY'}
|
||||
/>
|
||||
</Flexbox>
|
||||
|
||||
@@ -745,6 +745,7 @@ export class DiscoverService {
|
||||
title: item.name || item.identifier,
|
||||
tokenUsage: item.tokenUsage || 0,
|
||||
type: item.type,
|
||||
updatedAt: item.updatedAt,
|
||||
userName: normalizedAuthor.userName,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user