From 2cd8e9284b3abaeb0f79eda4ae3979ded0c31fcb Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Fri, 1 Nov 2024 10:51:36 -0400 Subject: [PATCH] fix lint errors --- src/stories/account/Account.stories.tsx | 8 +------- src/stories/collection/CollectionErrorMockRepository.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/stories/account/Account.stories.tsx b/src/stories/account/Account.stories.tsx index 65081c710..b19475721 100644 --- a/src/stories/account/Account.stories.tsx +++ b/src/stories/account/Account.stories.tsx @@ -4,7 +4,6 @@ import { WithI18next } from '../WithI18next' import { WithLayout } from '../WithLayout' import { WithLoggedInUser } from '../WithLoggedInUser' import { AccountHelper } from '../../sections/account/AccountHelper' -import { CollectionMockRepository } from '@/stories/collection/CollectionMockRepository' const meta: Meta = { title: 'Pages/Account', @@ -19,10 +18,5 @@ export default meta type Story = StoryObj export const APITokenTab: Story = { - render: () => ( - - ) + render: () => } diff --git a/src/stories/collection/CollectionErrorMockRepository.ts b/src/stories/collection/CollectionErrorMockRepository.ts index 2d5e8b4e7..b897f3853 100644 --- a/src/stories/collection/CollectionErrorMockRepository.ts +++ b/src/stories/collection/CollectionErrorMockRepository.ts @@ -7,7 +7,7 @@ import { CollectionFacet } from '../../collection/domain/models/CollectionFacet' import { CollectionMockRepository } from './CollectionMockRepository' export class CollectionErrorMockRepository extends CollectionMockRepository { - getById(_id: string): Promise { + getById(_id?: string): Promise { return new Promise((_resolve, reject) => { setTimeout(() => { reject('Something went wrong')