Skip to content

Commit

Permalink
revert "config" wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
moxley01 committed Jul 19, 2024
1 parent dba03ce commit 1c00c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .storybook/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,9 @@ function start() {
server.delete('/notifications/*', {});

server.post('/integrations/inbox/installations/start', {
config: {
locale: 'en',
theme: {},
images: {},
},
locale: 'en',
theme: {},
images: {},
});

// Realtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function SettingsProviders({ children, theme, locale, images, ...props }: MagicB
})
.then((response) => {
if (!('inbox' in response)) return;
setConfig(response.inbox.config);
setConfig(response.inbox);
})
.catch(() => void 0)
.finally(() => setIsFetchingConfig(false));
Expand Down

0 comments on commit 1c00c2d

Please sign in to comment.