Skip to content

Commit

Permalink
Merge pull request #97 from intellica-tech/DVT-84
Browse files Browse the repository at this point in the history
fix: DVT-84
  • Loading branch information
omerfbolat authored Dec 29, 2023
2 parents 4c70893 + e27f3f1 commit 4a72934
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions superset-frontend/src/components/DvtNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ const DvtNavigation: React.FC<DvtNavigationProps> = ({ data }) => (
))}
</StyledDvtNavigation>
);

export default DvtNavigation;
6 changes: 3 additions & 3 deletions superset-frontend/src/views/dvt-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import React, { Suspense } from 'react';
import { Switch, Route, useHistory } from 'react-router-dom';
import { Switch, Route, useLocation } from 'react-router-dom';
import { GlobalStyles } from 'src/GlobalStyles';
import ErrorBoundary from 'src/components/ErrorBoundary';
import Loading from 'src/components/Loading';
Expand Down Expand Up @@ -60,8 +60,8 @@ const Main = styled.main<StyledLayoutProps>`
const bootstrapData = getBootstrapData();

const DvtLayout = () => {
const history = useHistory();
const { pathname } = history.location;
const location = useLocation();
const { pathname } = location;

return (
<StyledApp navbarInHeight={WithNavbarBottom.includes(pathname)}>
Expand Down

0 comments on commit 4a72934

Please sign in to comment.