Fix production TypeScript errors blocking dashboard build
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
dc1d6e585d
commit
791580b850
@@ -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]);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user