diff --git a/apps/web/src/views/board/index.tsx b/apps/web/src/views/board/index.tsx
index 81cc54fa..79e16fd4 100644
--- a/apps/web/src/views/board/index.tsx
+++ b/apps/web/src/views/board/index.tsx
@@ -240,11 +240,12 @@ export default function BoardPage() {
- {isLoading ? (
+ {isLoading && !boardData && (
- ) : (
+ )}
+ {boardData && (
)}
+ {!boardData && !isLoading && (
+
Board not found
+ )}
-
+
@@ -298,7 +302,7 @@ export default function BoardPage() {
- ) : (
+ ) : boardData ? (
<>
{boardData?.lists.length === 0 ? (
@@ -370,13 +374,12 @@ export default function BoardPage() {
}}
key={card.publicId}
href={`/cards/${card.publicId}`}
- className={`mb-2 flex !cursor-pointer flex-col ${
- card.publicId.startsWith(
- "PLACEHOLDER",
- )
- ? "pointer-events-none"
- : ""
- }`}
+ className={`mb-2 flex !cursor-pointer flex-col ${card.publicId.startsWith(
+ "PLACEHOLDER",
+ )
+ ? "pointer-events-none"
+ : ""
+ }`}
ref={provided.innerRef}
{...provided.draggableProps}
{...provided.dragHandleProps}
@@ -404,7 +407,7 @@ export default function BoardPage() {
)}
>
- )}
+ ) : null}
{modalContentType === "DELETE_BOARD" && (
diff --git a/apps/web/src/views/card/index.tsx b/apps/web/src/views/card/index.tsx
index 29eed41a..051743fc 100644
--- a/apps/web/src/views/card/index.tsx
+++ b/apps/web/src/views/card/index.tsx
@@ -148,12 +148,13 @@ export default function CardPage() {
- {isLoading ? (
+ {!card && isLoading && (
- ) : (
+ )}
+ {card && (
<>
>
)}
+ {!card && !isLoading && (
+
+ Card not found
+
+ )}
-
@@ -226,7 +236,7 @@ export default function CardPage() {
@@ -234,7 +244,7 @@ export default function CardPage() {
@@ -242,7 +252,7 @@ export default function CardPage() {