Skip to content

Commit

Permalink
Merge pull request #24596 from storybookjs/24351-bug-error-when-switc…
Browse files Browse the repository at this point in the history
…hing-themes-addon-themes

Addon-themes: Fix globals not being set when using absolute path
  • Loading branch information
JReinhold authored Oct 27, 2023
2 parents 38d7bca + 2245d79 commit 010fc13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/code/addons/storyshots-core/ @ndelangen
/code/addons/storyshots-puppeteer/ @ndelangen
/code/addons/storysource/ @ndelangen
/code/addons/themes/ @JReinhold @Integrayshaun
/code/addons/toolbars/ @ndelangen @JReinhold
/code/addons/viewport/ @yannbf @ndelangen

Expand Down
10 changes: 3 additions & 7 deletions code/addons/themes/src/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import type { Renderer, ProjectAnnotations } from '@storybook/types';
import { GLOBAL_KEY } from './constants';

const preview: ProjectAnnotations<Renderer> = {
globals: {
// Required to make sure SB picks this up from URL params
[GLOBAL_KEY]: '',
},
export const globals: ProjectAnnotations<Renderer>['globals'] = {
// Required to make sure SB picks this up from URL params
[GLOBAL_KEY]: '',
};

export default preview;

0 comments on commit 010fc13

Please sign in to comment.