diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 2098824b0..d7db0d0a2 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -21,10 +21,11 @@ const preview: Preview = { }, }, }, - // Provide the MSW addon loader globally - loaders: [mswLoader], }; +// Provide the MSW addon loader globally +export const loaders = [mswLoader]; + export let decorators = [mockDateDecorator]; export default preview; diff --git a/package.json b/package.json index 447315665..7a00009c7 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,6 @@ "engine": 18, "browserslist": "> 0.25%, not dead", "msw": { - "workerDirectory": "public" + "workerDirectory": "./public" } } diff --git a/src/common/dialog/RevisionsDialog.svelte b/src/common/dialog/RevisionsDialog.svelte index 5eecfb0d5..b6f120454 100644 --- a/src/common/dialog/RevisionsDialog.svelte +++ b/src/common/dialog/RevisionsDialog.svelte @@ -1,4 +1,5 @@ -{#await getMePromise} - -{:then user} - + + {#if error} +
+ +
+ {:else}

{$_("dialogRevisionsDialog.heading")}

- {#if isPremiumOrg(user.organization)} + {#if isPremiumOrg(user?.organization)}
-
-{:catch} - -
- -
-
-{/await} + {/if} +