From 4a030f0927a0e416bec036044537361d7f9b289b Mon Sep 17 00:00:00 2001 From: Georges Lebreton <102960844+Georges-GNM@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:48:26 +0000 Subject: [PATCH] Indicate new props as optional --- fronts-client/src/components/clipboard/CardLevel.tsx | 6 +++--- fronts-client/src/lib/dnd/Level.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fronts-client/src/components/clipboard/CardLevel.tsx b/fronts-client/src/components/clipboard/CardLevel.tsx index a82bdbe990..b6d8b1946c 100644 --- a/fronts-client/src/components/clipboard/CardLevel.tsx +++ b/fronts-client/src/components/clipboard/CardLevel.tsx @@ -20,9 +20,9 @@ interface OuterProps { isUneditable?: boolean; dropMessage?: string; cardTypeAllowList?: CardTypes[]; - groupName: string; - numberOfCardsInGroup: number; - groupsIds: string[]; + groupName?: string; + numberOfCardsInGroup?: number; + groupsIds?: string[]; } interface InnerProps { diff --git a/fronts-client/src/lib/dnd/Level.tsx b/fronts-client/src/lib/dnd/Level.tsx index eb871381f6..3f7874a7e1 100644 --- a/fronts-client/src/lib/dnd/Level.tsx +++ b/fronts-client/src/lib/dnd/Level.tsx @@ -60,9 +60,9 @@ export interface LevelProps { children: LevelChild; parentId: string; parentType: string; - groupName: string; - numberOfCardsInGroup: number; - groupsIds: string[]; + groupName?: string; + numberOfCardsInGroup?: number; + groupsIds?: string[]; type: string; getDropType?: (item: T) => string; dragImageOffsetX?: number;