-
- {activeLayout === "list" ? : activeLayout === "kanban" ? : null}
- {/* issue peek overview */}
-
-
+ {issues?.groupedIssueIds?.length === 0 ? (
+
+ ) : (
+
+ {activeLayout === "list" ? (
+
+ ) : activeLayout === "kanban" ? (
+
+ ) : null}
+ {/* issue peek overview */}
+
+
+ )}
);
});
diff --git a/web/components/issues/issue-layouts/roots/module-layout-root.tsx b/web/components/issues/issue-layouts/roots/module-layout-root.tsx
index 12b91a375..5adc33d78 100644
--- a/web/components/issues/issue-layouts/roots/module-layout-root.tsx
+++ b/web/components/issues/issue-layouts/roots/module-layout-root.tsx
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { Fragment } from "react";
import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
import useSWR from "swr";
@@ -63,38 +63,38 @@ export const ModuleLayoutRoot: React.FC = observer(() => {
);
}
- if (issues?.groupedIssueIds?.length === 0) {
- return (
-
-
- {activeLayout === "list" ? (
-
- ) : activeLayout === "kanban" ? (
-
- ) : activeLayout === "calendar" ? (
-
- ) : activeLayout === "gantt_chart" ? (
-
- ) : activeLayout === "spreadsheet" ? (
-
- ) : null}
-
- {/* peek overview */}
-
+ {issues?.groupedIssueIds?.length === 0 ? (
+
+
+
+ ) : (
+
+
+ {activeLayout === "list" ? (
+
+ ) : activeLayout === "kanban" ? (
+
+ ) : activeLayout === "calendar" ? (
+
+ ) : activeLayout === "gantt_chart" ? (
+
+ ) : activeLayout === "spreadsheet" ? (
+
+ ) : null}
+
+ {/* peek overview */}
+
+
+ )}
);
});
diff --git a/web/components/issues/issue-layouts/roots/project-layout-root.tsx b/web/components/issues/issue-layouts/roots/project-layout-root.tsx
index 5f644ce45..75bb4bfad 100644
--- a/web/components/issues/issue-layouts/roots/project-layout-root.tsx
+++ b/web/components/issues/issue-layouts/roots/project-layout-root.tsx
@@ -1,4 +1,4 @@
-import { FC } from "react";
+import { FC, Fragment } from "react";
import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
import useSWR from "swr";
@@ -48,40 +48,38 @@ export const ProjectLayoutRoot: FC = observer(() => {
return <>{activeLayout &&
-
- {/* mutation loader */}
- {issues?.loader === "mutation" && (
-
-
+ {issues?.groupedIssueIds?.length === 0 ? (
+
+ ) : (
+
+
+ {/* mutation loader */}
+ {issues?.loader === "mutation" && (
+
+
+
+ )}
+ {activeLayout === "list" ? (
+
+ ) : activeLayout === "kanban" ? (
+
+ ) : activeLayout === "calendar" ? (
+
+ ) : activeLayout === "gantt_chart" ? (
+
+ ) : activeLayout === "spreadsheet" ? (
+
+ ) : null}
- )}
- {activeLayout === "list" ? (
-
- ) : activeLayout === "kanban" ? (
-
- ) : activeLayout === "calendar" ? (
-
- ) : activeLayout === "gantt_chart" ? (
-
- ) : activeLayout === "spreadsheet" ? (
-
- ) : null}
-
- {/* peek overview */}
-
+ {/* peek overview */}
+
+
+ )}
);
});
diff --git a/web/components/issues/issue-layouts/roots/project-view-layout-root.tsx b/web/components/issues/issue-layouts/roots/project-view-layout-root.tsx
index b6e2e36a7..2e55a499d 100644
--- a/web/components/issues/issue-layouts/roots/project-view-layout-root.tsx
+++ b/web/components/issues/issue-layouts/roots/project-view-layout-root.tsx
@@ -1,4 +1,4 @@
-import React, { useMemo } from "react";
+import React, { Fragment, useMemo } from "react";
import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
import useSWR from "swr";
@@ -79,34 +79,34 @@ export const ProjectViewLayoutRoot: React.FC = observer(() => {
);
}
- if (issues?.groupedIssueIds?.length === 0) {
- return (
-
- );
- }
-
return (
-
- {activeLayout === "list" ? (
-
- ) : activeLayout === "kanban" ? (
-
- ) : activeLayout === "calendar" ? (
-
- ) : activeLayout === "gantt_chart" ? (
-
- ) : activeLayout === "spreadsheet" ? (
-
- ) : null}
-
+ {issues?.groupedIssueIds?.length === 0 ? (
+
+ ) : (
+
+
+ {activeLayout === "list" ? (
+
+ ) : activeLayout === "kanban" ? (
+
+ ) : activeLayout === "calendar" ? (
+
+ ) : activeLayout === "gantt_chart" ? (
+
+ ) : activeLayout === "spreadsheet" ? (
+
+ ) : null}
+
- {/* peek overview */}
-
+ {/* peek overview */}
+
+
+ )}
);
});
diff --git a/web/store/issue/archived/issue.store.ts b/web/store/issue/archived/issue.store.ts
index a31cdfef1..dca00d702 100644
--- a/web/store/issue/archived/issue.store.ts
+++ b/web/store/issue/archived/issue.store.ts
@@ -67,10 +67,11 @@ export class ArchivedIssues extends IssueHelperStore implements IArchivedIssues
const orderBy = displayFilters?.order_by;
const layout = displayFilters?.layout;
- const archivedIssueIds = this.issues[projectId] ?? [];
+ const archivedIssueIds = this.issues[projectId];
+ if (!archivedIssueIds) return undefined;
const _issues = this.rootIssueStore.issues.getIssuesByIds(archivedIssueIds);
- if (!_issues) return undefined;
+ if (!_issues) return [];
let issues: TGroupedIssues | TSubGroupedIssues | TUnGroupedIssues | undefined = undefined;
diff --git a/web/store/issue/draft/issue.store.ts b/web/store/issue/draft/issue.store.ts
index dc0f601eb..5e42e9bab 100644
--- a/web/store/issue/draft/issue.store.ts
+++ b/web/store/issue/draft/issue.store.ts
@@ -78,10 +78,11 @@ export class DraftIssues extends IssueHelperStore implements IDraftIssues {
const orderBy = displayFilters?.order_by;
const layout = displayFilters?.layout;
- const draftIssueIds = this.issues[projectId] ?? [];
+ const draftIssueIds = this.issues[projectId];
+ if (!draftIssueIds) return undefined;
const _issues = this.rootIssueStore.issues.getIssuesByIds(draftIssueIds);
- if (!_issues) return undefined;
+ if (!_issues) return [];
let issues: TGroupedIssues | TSubGroupedIssues | TUnGroupedIssues | undefined = undefined;
diff --git a/yarn.lock b/yarn.lock
index 291c710bd..1f9b26965 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5012,7 +5012,7 @@ fault@^2.0.0:
dependencies:
format "^0.2.0"
-fflate@^0.4.1:
+fflate@^0.4.8:
version "0.4.8"
resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.4.8.tgz#f90b82aefbd8ac174213abb338bd7ef848f0f5ae"
integrity sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==
@@ -7171,12 +7171,18 @@ postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.29:
picocolors "^1.0.0"
source-map-js "^1.0.2"
-posthog-js@^1.88.4:
- version "1.96.1"
- resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.96.1.tgz#4f9719a24e4e14037b0e72d430194d7cdb576447"
- integrity sha512-kv1vQqYMt2BV3YHS+wxsbGuP+tz+M3y1AzNhz8TfkpY1HT8W/ONT0i0eQpeRr9Y+d4x/fZ6M4cXG5GMvi9lRCA==
+posthog-js@^1.105.0:
+ version "1.105.8"
+ resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.105.8.tgz#934602f0c7a5e522a25828062b5841ad8780756f"
+ integrity sha512-zKZKNVLLQQgkJyY3DnzHHTasu6x4xM4MOvH7UbMz6BmrgUPboS6/3akgz+WKD+JV6qFj68bm80iJw0Jtj+pt8Q==
dependencies:
- fflate "^0.4.1"
+ fflate "^0.4.8"
+ preact "^10.19.3"
+
+preact@^10.19.3:
+ version "10.19.4"
+ resolved "https://registry.yarnpkg.com/preact/-/preact-10.19.4.tgz#735d331d5b1bd2182cc36f2ba481fd6f0da3fe3b"
+ integrity sha512-dwaX5jAh0Ga8uENBX1hSOujmKWgx9RtL80KaKUFLc6jb4vCEAc3EeZ0rnQO/FO4VgjfPMfoLFWnNG8bHuZ9VLw==
prebuild-install@^7.1.1:
version "7.1.1"