Skip to content

Commit

Permalink
fix: use api feature error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed Nov 26, 2024
1 parent f611a64 commit 5a1bafe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webview_panels/src/modules/app/useListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ import {
setUsers,
updateTheme,
} from "./appSlice";
import { useLocation } from "react-router-dom";

const useListeners = (dispatch: Dispatch<UnknownAction>): void => {
const location = useLocation();

const onMesssage = useCallback(
(event: MessageEvent<IncomingMessageProps>) => {
const { command, args } = event.data;
Expand Down Expand Up @@ -104,7 +107,9 @@ const useListeners = (dispatch: Dispatch<UnknownAction>): void => {

loadUsersDetails();
loadCurrentUser();
loadTenantInfo();
if (location.pathname !== "/lineage") {
loadTenantInfo();
}

themeObserver.observe(document.body, {
attributes: true,
Expand Down

0 comments on commit 5a1bafe

Please sign in to comment.