fix: rendering existing cycle and module issue properties when we reload the page in the inbox (#5190)
This commit is contained in:
parent
9c1c0ed166
commit
73455c8040
1 changed files with 6 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
import { useParams } from "next/navigation";
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
// components
|
// components
|
||||||
import { LogoSpinner } from "@/components/common";
|
import { LogoSpinner } from "@/components/common";
|
||||||
|
|
@ -14,8 +15,10 @@ import { EmptyStateType } from "@/constants/empty-state";
|
||||||
import { ENotificationLoader, ENotificationQueryParamType } from "@/constants/notification";
|
import { ENotificationLoader, ENotificationQueryParamType } from "@/constants/notification";
|
||||||
// hooks
|
// hooks
|
||||||
import { useIssueDetail, useUser, useWorkspace, useWorkspaceNotifications } from "@/hooks/store";
|
import { useIssueDetail, useUser, useWorkspace, useWorkspaceNotifications } from "@/hooks/store";
|
||||||
|
import { useWorkspaceIssueProperties } from "@/hooks/use-workspace-issue-properties";
|
||||||
|
|
||||||
const WorkspaceDashboardPage = observer(() => {
|
const WorkspaceDashboardPage = observer(() => {
|
||||||
|
const { workspaceSlug } = useParams();
|
||||||
// hooks
|
// hooks
|
||||||
const { currentWorkspace } = useWorkspace();
|
const { currentWorkspace } = useWorkspace();
|
||||||
const {
|
const {
|
||||||
|
|
@ -34,6 +37,9 @@ const WorkspaceDashboardPage = observer(() => {
|
||||||
const { workspace_slug, project_id, issue_id, is_inbox_issue } =
|
const { workspace_slug, project_id, issue_id, is_inbox_issue } =
|
||||||
notificationLiteByNotificationId(currentSelectedNotificationId);
|
notificationLiteByNotificationId(currentSelectedNotificationId);
|
||||||
|
|
||||||
|
// fetching workspace issue properties
|
||||||
|
useWorkspaceIssueProperties(workspaceSlug);
|
||||||
|
|
||||||
// fetch workspace notifications
|
// fetch workspace notifications
|
||||||
const notificationMutation =
|
const notificationMutation =
|
||||||
currentWorkspace && notificationIdsByWorkspaceId(currentWorkspace.id)
|
currentWorkspace && notificationIdsByWorkspaceId(currentWorkspace.id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue