Skip to content

Commit 2683802

Browse files
Fix crossword entries type (#2000)
* Fix schema
1 parent 6a1e951 commit 2683802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: libs/@guardian/react-crossword/src/@types/CAPI.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export type CAPICrossword = {
5252
date: number;
5353
dateSolutionAvailable?: number;
5454
dimensions: Dimensions;
55-
entries: [CAPIEntry, ...CAPIEntry[]];
55+
entries: CAPIEntry[];
5656
id: string;
5757
name: string;
5858
number: number;

Diff for: libs/@guardian/react-crossword/src/components/Controls.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const meta: Meta<typeof Controls> = {
1616
<ContextProvider
1717
data={data}
1818
theme={defaultTheme}
19-
selectedEntryId={data.entries[0].id}
19+
selectedEntryId={data.entries[0]?.id}
2020
>
2121
<Story />
2222
</ContextProvider>

0 commit comments

Comments
 (0)