Fix production TypeScript errors blocking dashboard build

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-03 23:34:44 +03:30
co-authored by Cursor
parent dc1d6e585d
commit 791580b850
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -127,10 +127,11 @@ export default function BlogCategoriesPage() {
}, [categories]); }, [categories]);
const parentOptions = useMemo(() => { const parentOptions = useMemo(() => {
const source = !draft?.id const draftId = draft?.id;
const source = !draftId
? categories ? categories
: categories.filter( : categories.filter(
(item) => !collectDescendantIds(draft.id, categories).has(item.id), (item) => !collectDescendantIds(draftId, categories).has(item.id),
); );
return toTreeSelect(source); return toTreeSelect(source);
}, [categories, draft?.id]); }, [categories, draft?.id]);
+2
View File
@@ -14,6 +14,8 @@ export interface MarketplaceBusiness {
isFeatured: boolean; isFeatured: boolean;
sortWeight: number; sortWeight: number;
publishedAt: string | null; publishedAt: string | null;
createdAt?: string;
updatedAt?: string;
/** Enriched client-side from Meshkee when available */ /** Enriched client-side from Meshkee when available */
name?: string; name?: string;
categoryName?: string; categoryName?: string;