mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-20 06:58:18 +00:00
parent
0639bdc083
commit
3772ca5dc3
@ -25,15 +25,17 @@ const RecentlyViewed: FunctionComponent = () => {
|
||||
const prepareData = () => {
|
||||
if (recentlyViewedData.length) {
|
||||
setIsloading(true);
|
||||
const formatedData = recentlyViewedData.map((data) => {
|
||||
return {
|
||||
serviceType: data.serviceType,
|
||||
name: data.displayName || prepareLabel(data.entityType, data.fqn),
|
||||
fullyQualifiedName: data.fqn,
|
||||
index: data.entityType,
|
||||
};
|
||||
});
|
||||
setData(formatedData as unknown as FormatedTableData[]);
|
||||
const formattedData = recentlyViewedData
|
||||
.map((item) => {
|
||||
return {
|
||||
serviceType: item.serviceType,
|
||||
name: item.displayName || prepareLabel(item.entityType, item.fqn),
|
||||
fullyQualifiedName: item.fqn,
|
||||
index: item.entityType,
|
||||
};
|
||||
})
|
||||
.filter((item) => item.name);
|
||||
setData(formattedData as unknown as FormatedTableData[]);
|
||||
setIsloading(false);
|
||||
}
|
||||
};
|
||||
|
@ -21,7 +21,7 @@ export const API_RES_MAX_SIZE = 100000;
|
||||
export const LIST_SIZE = 5;
|
||||
export const SIDEBAR_WIDTH_COLLAPSED = 290;
|
||||
export const SIDEBAR_WIDTH_EXPANDED = 290;
|
||||
export const LOCALSTORAGE_RECENTLY_VIEWED = 'recentlyViewedData';
|
||||
export const LOCALSTORAGE_RECENTLY_VIEWED = `recentlyViewedData_${COOKIE_VERSION}`;
|
||||
export const LOCALSTORAGE_RECENTLY_SEARCHED = `recentlySearchedData_${COOKIE_VERSION}`;
|
||||
export const oidcTokenKey = 'oidcIdToken';
|
||||
export const isAdminUpdated = 'isAdminUpdated';
|
||||
|
Loading…
x
Reference in New Issue
Block a user