Skip to content

Commit

Permalink
Deepscan
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 7, 2022
1 parent eaf5af0 commit 8705ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/blocks/src/blocks/ArgsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const useArgs = (
return [args, updateArgs, resetArgs];
};

const useGlobals = (storyId: string, context: DocsContextProps): [Globals] => {
const useGlobals = (context: DocsContextProps): [Globals] => {
const channel = addons.getChannel();
const storyContext = context.getStoryContext(context.storyById());
const [globals, setGlobals] = useState(storyContext.globals);
Expand Down Expand Up @@ -168,7 +168,7 @@ export const StoryTable: FC<
const story = useStory(storyId, context);
// eslint-disable-next-line prefer-const
let [args, updateArgs, resetArgs] = useArgs(storyId, context);
const [globals] = useGlobals(storyId, context);
const [globals] = useGlobals(context);
if (!story) return <PureArgsTable isLoading updateArgs={updateArgs} resetArgs={resetArgs} />;

const argTypes = filterArgTypes(story.argTypes, include, exclude);
Expand Down
2 changes: 1 addition & 1 deletion lib/blocks/src/blocks/Source.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ComponentProps, FC, useContext } from 'react';
import type { StoryId, Parameters } from '@storybook/api';
import type { StoryId } from '@storybook/api';
import type { Story } from '@storybook/store';
import { SourceType } from '@storybook/docs-tools';

Expand Down

0 comments on commit 8705ae1

Please sign in to comment.