diff --git a/catalog-rest-service/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx b/catalog-rest-service/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx index 59f19715c55..4d71e71abff 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/EntityLineage/EntityLineage.component.tsx @@ -381,7 +381,7 @@ const Entitylineage: FunctionComponent<{ entityLineage: EntityLineage }> = ({ ) : ( -
+
No Lineage data available
)} diff --git a/catalog-rest-service/src/main/resources/ui/src/components/ManageTab/ManageTab.component.tsx b/catalog-rest-service/src/main/resources/ui/src/components/ManageTab/ManageTab.component.tsx index c8c113b061e..41ea3ee075d 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/ManageTab/ManageTab.component.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/ManageTab/ManageTab.component.tsx @@ -235,7 +235,7 @@ const ManageTab: FunctionComponent = ({ showSearchBar dropDownList={listOwners} groupType="tab" - listGroups={['Users', 'Teams']} + listGroups={['Teams', 'Users']} value={owner} onSelect={handleOwnerSelection} /> diff --git a/catalog-rest-service/src/main/resources/ui/src/components/TableProfiler/TableProfiler.component.tsx b/catalog-rest-service/src/main/resources/ui/src/components/TableProfiler/TableProfiler.component.tsx index 370e1fac73f..48c293c41cb 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/TableProfiler/TableProfiler.component.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/TableProfiler/TableProfiler.component.tsx @@ -72,28 +72,30 @@ const TableProfiler = ({ tableProfiles, columns }: Props) => { - - setExpandedColumn((prevState) => ({ - name: col.name, - isExpanded: - prevState.name === col.name - ? !prevState.isExpanded - : true, - })) - }> - {expandedColumn.name === col.name ? ( - expandedColumn.isExpanded ? ( - +

+ + setExpandedColumn((prevState) => ({ + name: col.name, + isExpanded: + prevState.name === col.name + ? !prevState.isExpanded + : true, + })) + }> + {expandedColumn.name === col.name ? ( + expandedColumn.isExpanded ? ( + + ) : ( + + ) ) : ( - ) - ) : ( - - )} - - {col.name} + )} + + {col.name} +

{ })} ) : ( -
+
No profiler data available
)} diff --git a/catalog-rest-service/src/main/resources/ui/src/components/dropdown/DropDownList.tsx b/catalog-rest-service/src/main/resources/ui/src/components/dropdown/DropDownList.tsx index 211f41aa674..9e2b1f1ffcb 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/dropdown/DropDownList.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/dropdown/DropDownList.tsx @@ -34,7 +34,18 @@ const DropDownList: FunctionComponent = ({ const isMounted = useRef(false); const [searchedList, setSearchedList] = useState(dropDownList); const [searchText, setSearchText] = useState(searchString); - const [activeTab, setActiveTab] = useState(1); + + const setCurrentTabOnMount = () => { + const selectedItem = dropDownList.find((l) => l.value === value); + let index = 0; + if (selectedItem) { + index = listGroups.indexOf(selectedItem.group as string); + } + + return index >= 0 ? index + 1 : 1; + }; + + const [activeTab, setActiveTab] = useState(setCurrentTabOnMount()); const getTabClasses = (tab: number, activeTab: number) => { return 'tw-gh-tabs' + (activeTab === tab ? ' active' : ''); @@ -70,15 +81,6 @@ const DropDownList: FunctionComponent = ({ ); }; - const setCurrentTabOnMount = () => { - const owner = dropDownList.find((l) => l.value === value); - if (owner) { - const index = listGroups.indexOf(owner.group as string); - - setActiveTab(index >= 0 ? index + 1 : 1); - } - }; - useEffect(() => { setSearchText(searchString); }, [searchString]); @@ -108,8 +110,8 @@ const DropDownList: FunctionComponent = ({ }, [searchText]); useEffect(() => { + setActiveTab(setCurrentTabOnMount()); isMounted.current = true; - setCurrentTabOnMount(); }, []); return (