Skip to content

Commit 8cfe07a

Browse files
committed
fix: lint issues
1 parent 13c83de commit 8cfe07a

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/library-authoring/collections/LibraryCollectionPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ const LibraryCollectionPage = () => {
9494
const { libraryId, collectionId } = useParams();
9595

9696
if (!collectionId || !libraryId) {
97+
// istanbul ignore next - This shouldn't be possible; it's just here to satisfy the type checker.
9798
throw new Error('Rendered without collectionId or libraryId URL parameter');
9899
}
99100

src/library-authoring/common/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const LibraryContext = React.createContext({
3030
isCreateCollectionModalOpen: false,
3131
openCreateCollectionModal: () => {},
3232
closeCreateCollectionModal: () => {},
33-
openCollectionInfoSidebar: () => {}, // eslint-disable-line @typescript-eslint/no-unused-vars
33+
openCollectionInfoSidebar: () => {},
3434
} as LibraryContextData);
3535

3636
/**

src/library-authoring/data/api.mocks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ mockCollection.collectionData = {
259259
key: mockCollection.collectionId,
260260
title: 'My first collection',
261261
description: 'A collection for testing',
262-
entities: [],
263262
created: '2024-06-26T14:19:59Z',
264263
modified: '2024-07-20T17:36:51Z',
265264
enabled: true,

src/library-authoring/data/api.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ export interface Collection {
8888
createdBy: string | null;
8989
created: string;
9090
modified: string;
91-
// TODO: Update the type below once entities are properly linked
92-
entities: Array<any>;
9391
learningPackage: number;
9492
}
9593

0 commit comments

Comments
 (0)