File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ const LibraryCollectionPage = () => {
94
94
const { libraryId, collectionId } = useParams ( ) ;
95
95
96
96
if ( ! collectionId || ! libraryId ) {
97
+ // istanbul ignore next - This shouldn't be possible; it's just here to satisfy the type checker.
97
98
throw new Error ( 'Rendered without collectionId or libraryId URL parameter' ) ;
98
99
}
99
100
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const LibraryContext = React.createContext({
30
30
isCreateCollectionModalOpen : false ,
31
31
openCreateCollectionModal : ( ) => { } ,
32
32
closeCreateCollectionModal : ( ) => { } ,
33
- openCollectionInfoSidebar : ( ) => { } , // eslint-disable-line @typescript-eslint/no-unused-vars
33
+ openCollectionInfoSidebar : ( ) => { } ,
34
34
} as LibraryContextData ) ;
35
35
36
36
/**
Original file line number Diff line number Diff line change @@ -259,7 +259,6 @@ mockCollection.collectionData = {
259
259
key : mockCollection . collectionId ,
260
260
title : 'My first collection' ,
261
261
description : 'A collection for testing' ,
262
- entities : [ ] ,
263
262
created : '2024-06-26T14:19:59Z' ,
264
263
modified : '2024-07-20T17:36:51Z' ,
265
264
enabled : true ,
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ export interface Collection {
88
88
createdBy : string | null ;
89
89
created : string ;
90
90
modified : string ;
91
- // TODO: Update the type below once entities are properly linked
92
- entities : Array < any > ;
93
91
learningPackage : number ;
94
92
}
95
93
You can’t perform that action at this time.
0 commit comments