diff --git a/space/components/issues/navbar/index.tsx b/space/components/issues/navbar/index.tsx index ff992c037..0139ae9ad 100644 --- a/space/components/issues/navbar/index.tsx +++ b/space/components/issues/navbar/index.tsx @@ -40,7 +40,7 @@ const IssueNavbar: FC = observer((props) => { useEffect(() => { if (workspaceSlug && projectId && settings) { const viewsAcceptable: string[] = []; - let currentBoard: TIssueBoardKeys | null = null; + const currentBoard: TIssueBoardKeys | null = null; if (settings?.views?.list) viewsAcceptable.push("list"); if (settings?.views?.kanban) viewsAcceptable.push("kanban"); @@ -48,19 +48,19 @@ const IssueNavbar: FC = observer((props) => { if (settings?.views?.gantt) viewsAcceptable.push("gantt"); if (settings?.views?.spreadsheet) viewsAcceptable.push("spreadsheet"); - // if (board) { - // if (viewsAcceptable.includes(board.toString())) { - // currentBoard = board.toString() as TIssueBoardKeys; - // } else { - // if (viewsAcceptable && viewsAcceptable.length > 0) { - // currentBoard = viewsAcceptable[0] as TIssueBoardKeys; - // } - // } - // } else { - // if (viewsAcceptable && viewsAcceptable.length > 0) { - // currentBoard = viewsAcceptable[0] as TIssueBoardKeys; - // } - // } + // if (board) { + // if (viewsAcceptable.includes(board.toString())) { + // currentBoard = board.toString() as TIssueBoardKeys; + // } else { + // if (viewsAcceptable && viewsAcceptable.length > 0) { + // currentBoard = viewsAcceptable[0] as TIssueBoardKeys; + // } + // } + // } else { + // if (viewsAcceptable && viewsAcceptable.length > 0) { + // currentBoard = viewsAcceptable[0] as TIssueBoardKeys; + // } + // } if (currentBoard) { if (activeLayout === null || activeLayout !== currentBoard) { diff --git a/space/helpers/common.helper.ts b/space/helpers/common.helper.ts index c6b305ef1..99e04e559 100644 --- a/space/helpers/common.helper.ts +++ b/space/helpers/common.helper.ts @@ -12,9 +12,4 @@ export const WEB_BASE_URL = process.env.NEXT_PUBLIC_WEB_BASE_URL || ""; export const ASSET_PREFIX = SPACE_BASE_PATH; -export const ADMIN_BASE_URL = process.env.NEXT_PUBLIC_ADMIN_BASE_URL ?? ""; -export const ADMIN_BASE_PATH = process.env.NEXT_PUBLIC_ADMIN_BASE_PATH ?? ""; - -export const WEB_BASE_URL = process.env.NEXT_PUBLIC_WEB_BASE_URL ?? ""; - export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));