fix user profile page playwright test (#20107)

This commit is contained in:
Ashish Gupta 2025-03-06 13:19:18 +05:30 committed by GitHub
parent 7cbcb1a94b
commit dcf5604c62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 6 deletions

View File

@ -58,7 +58,7 @@ export const ApplicationsProvider = ({ children }: { children: ReactNode }) => {
} else {
setLoading(false);
}
}, [permissions]);
}, []);
const appContext = useMemo(() => {
return { applications };

View File

@ -34,6 +34,7 @@ import ActivityFeedProvider from '../../ActivityFeed/ActivityFeedProvider/Activi
import { ActivityFeedTab } from '../../ActivityFeed/ActivityFeedTab/ActivityFeedTab.component';
import Chip from '../../common/Chip/Chip.component';
import DescriptionV1 from '../../common/EntityDescription/DescriptionV1';
import RichTextEditorPreviewerV1 from '../../common/RichTextEditor/RichTextEditorPreviewerV1';
import TabsLabel from '../../common/TabsLabel/TabsLabel.component';
import EntitySummaryPanel from '../../Explore/EntitySummaryPanel/EntitySummaryPanel.component';
import { EntityDetailsObjectInterface } from '../../Explore/ExplorePage.interface';
@ -282,11 +283,15 @@ const Users = ({
{t('label.description')}
</Typography.Text>
<Typography.Paragraph className="m-b-0">
{isEmpty(userData.description)
? t('label.no-entity', {
entity: t('label.description'),
})
: userData.description}
{isEmpty(userData.description) ? (
t('label.no-entity', {
entity: t('label.description'),
})
) : (
<RichTextEditorPreviewerV1
markdown={userData.description ?? ''}
/>
)}
</Typography.Paragraph>
</Space>
),