mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-24 00:48:36 +00:00
fix(ui): data assets order for search in explore page (#20963)
* fix: asset order and sort order for search * revert sort order change
This commit is contained in:
parent
6d64fbf9c5
commit
2cf510764d
@ -210,7 +210,9 @@ const ExploreV1: React.FC<ExploreProps> = ({
|
||||
|
||||
const exploreLeftPanel = useMemo(() => {
|
||||
if (tabItems.length === 0) {
|
||||
return (
|
||||
return loading ? (
|
||||
<Loader />
|
||||
) : (
|
||||
<FilterErrorPlaceHolder
|
||||
className="h-min-80 d-flex flex-col justify-center border-none"
|
||||
size={SIZE.MEDIUM}
|
||||
|
@ -357,20 +357,6 @@ class SearchClassBase {
|
||||
|
||||
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
|
||||
return {
|
||||
[SearchIndex.TABLE]: {
|
||||
label: i18n.t('label.table-plural'),
|
||||
sortingFields: tableSortingFields,
|
||||
sortField: INITIAL_SORT_FIELD,
|
||||
path: ExplorePageTabs.TABLES,
|
||||
icon: TableIcon,
|
||||
},
|
||||
[SearchIndex.STORED_PROCEDURE]: {
|
||||
label: i18n.t('label.stored-procedure-plural'),
|
||||
sortingFields: entitySortingFields,
|
||||
sortField: INITIAL_SORT_FIELD,
|
||||
path: ExplorePageTabs.STORED_PROCEDURE,
|
||||
icon: IconStoredProcedure,
|
||||
},
|
||||
[SearchIndex.DATABASE]: {
|
||||
label: i18n.t('label.database-plural'),
|
||||
sortingFields: entitySortingFields,
|
||||
@ -385,6 +371,20 @@ class SearchClassBase {
|
||||
path: ExplorePageTabs.DATABASE_SCHEMA,
|
||||
icon: SchemaIcon,
|
||||
},
|
||||
[SearchIndex.TABLE]: {
|
||||
label: i18n.t('label.table-plural'),
|
||||
sortingFields: tableSortingFields,
|
||||
sortField: INITIAL_SORT_FIELD,
|
||||
path: ExplorePageTabs.TABLES,
|
||||
icon: TableIcon,
|
||||
},
|
||||
[SearchIndex.STORED_PROCEDURE]: {
|
||||
label: i18n.t('label.stored-procedure-plural'),
|
||||
sortingFields: entitySortingFields,
|
||||
sortField: INITIAL_SORT_FIELD,
|
||||
path: ExplorePageTabs.STORED_PROCEDURE,
|
||||
icon: IconStoredProcedure,
|
||||
},
|
||||
[SearchIndex.DASHBOARD]: {
|
||||
label: i18n.t('label.dashboard-plural'),
|
||||
sortingFields: entitySortingFields,
|
||||
|
Loading…
x
Reference in New Issue
Block a user