Skip to content

Commit 55c4692

Browse files
fix(ui): Fix routing issue in Manage Views (#15101)
1 parent a18e716 commit 55c4692

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

datahub-web-react/src/app/entityV2/view/ManageViews.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Button, PageTitle, Tabs, colors } from '@components';
2-
import React, { useCallback, useEffect, useState } from 'react';
2+
import React, { useEffect, useState } from 'react';
33
import { useLocation } from 'react-router';
44
import styled from 'styled-components';
55

@@ -98,8 +98,6 @@ export const ManageViews = () => {
9898
}
9999
}, [selectedTab, location.pathname]);
100100

101-
const getCurrentUrl = useCallback(() => location.pathname, [location.pathname]);
102-
103101
return (
104102
<PageContainer>
105103
<PageHeaderContainer>
@@ -129,7 +127,6 @@ export const ManageViews = () => {
129127
onChange={(tab) => setSelectedTab(tab as TabType)}
130128
urlMap={tabUrlMap}
131129
defaultTab={TabType.Personal}
132-
getCurrentUrl={getCurrentUrl}
133130
/>
134131
</ListContainer>
135132
{showViewBuilder && (

0 commit comments

Comments
 (0)