Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Sep 18, 2024
1 parent 13c83de commit 8cfe07a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const LibraryCollectionPage = () => {
const { libraryId, collectionId } = useParams();

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

Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/common/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const LibraryContext = React.createContext({
isCreateCollectionModalOpen: false,
openCreateCollectionModal: () => {},
closeCreateCollectionModal: () => {},
openCollectionInfoSidebar: () => {}, // eslint-disable-line @typescript-eslint/no-unused-vars
openCollectionInfoSidebar: () => {},
} as LibraryContextData);

/**
Expand Down
1 change: 0 additions & 1 deletion src/library-authoring/data/api.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ mockCollection.collectionData = {
key: mockCollection.collectionId,
title: 'My first collection',
description: 'A collection for testing',
entities: [],
created: '2024-06-26T14:19:59Z',
modified: '2024-07-20T17:36:51Z',
enabled: true,
Expand Down
2 changes: 0 additions & 2 deletions src/library-authoring/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ export interface Collection {
createdBy: string | null;
created: string;
modified: string;
// TODO: Update the type below once entities are properly linked
entities: Array<any>;
learningPackage: number;
}

Expand Down

0 comments on commit 8cfe07a

Please sign in to comment.