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')