fix peek overview loading state (#5698)
This commit is contained in:
parent
0068ea93de
commit
6e0ece496a
5 changed files with 31 additions and 16 deletions
|
|
@ -19,7 +19,7 @@ const ArchivedIssueDetailsPage = observer(() => {
|
|||
// hooks
|
||||
const {
|
||||
fetchIssue,
|
||||
issue: { getIssueById, isFetchingIssueDetails },
|
||||
issue: { getIssueById, getIsFetchingIssueDetails },
|
||||
} = useIssueDetail();
|
||||
|
||||
const { getProjectById } = useProject();
|
||||
|
|
@ -40,7 +40,7 @@ const ArchivedIssueDetailsPage = observer(() => {
|
|||
|
||||
if (!issue) return <></>;
|
||||
|
||||
const issueLoader = !issue || isFetchingIssueDetails ? true : false;
|
||||
const issueLoader = !issue || getIsFetchingIssueDetails(issue?.id) ? true : false;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ const IssueDetailsPage = observer(() => {
|
|||
// store hooks
|
||||
const {
|
||||
fetchIssue,
|
||||
issue: { getIssueById, isFetchingIssueDetails },
|
||||
issue: { getIssueById, getIsFetchingIssueDetails },
|
||||
} = useIssueDetail();
|
||||
const { getProjectById } = useProject();
|
||||
const { toggleIssueDetailSidebar, issueDetailSidebarCollapsed } = useAppTheme();
|
||||
|
|
@ -41,7 +41,7 @@ const IssueDetailsPage = observer(() => {
|
|||
// derived values
|
||||
const issue = getIssueById(issueId?.toString() || "") || undefined;
|
||||
const project = (issue?.project_id && getProjectById(issue?.project_id)) || undefined;
|
||||
const issueLoader = !issue || isFetchingIssueDetails ? true : false;
|
||||
const issueLoader = !issue || getIsFetchingIssueDetails(issue?.id) ? true : false;
|
||||
const pageTitle = project && issue ? `${project?.identifier}-${issue?.sequence_id} ${issue?.name}` : undefined;
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue