diff --git a/web/components/pages/editor/editor-body.tsx b/web/components/pages/editor/editor-body.tsx index 39b07e446c..4c1f68cc6f 100644 --- a/web/components/pages/editor/editor-body.tsx +++ b/web/components/pages/editor/editor-body.tsx @@ -91,7 +91,7 @@ export const PageEditorBody: React.FC = observer((props) => { updateMarkings(description_html ?? "

"); }, [description_html, updateMarkings]); - if (!issues && issuesLoading) + if (!issues || issuesLoading) return (
diff --git a/web/hooks/use-issue-embeds.tsx b/web/hooks/use-issue-embeds.tsx index 99bc7e909f..43e1f99bd3 100644 --- a/web/hooks/use-issue-embeds.tsx +++ b/web/hooks/use-issue-embeds.tsx @@ -19,7 +19,11 @@ export const useIssueEmbeds = () => { const { data: issuesResponse, isLoading: issuesLoading } = useSWR( workspaceSlug && projectId ? PROJECT_ISSUES_LIST(workspaceSlug as string, projectId as string) : null, - workspaceSlug && projectId ? () => issueService.getIssues(workspaceSlug as string, projectId as string) : null + workspaceSlug && projectId ? () => issueService.getIssues(workspaceSlug as string, projectId as string) : null, + { + revalidateOnFocus: false, + revalidateIfStale: false, + } ); const issues = Object.values(issuesResponse ?? {});