Skip to content

Commit

Permalink
Merge pull request #27224 from storybookjs/valentin/fix-a11y-default-…
Browse files Browse the repository at this point in the history
…assignment

Addon-A11y: Fix property default assignment
  • Loading branch information
valentinpalkovic authored May 22, 2024
2 parents fb255d9 + 2d38257 commit fb8b18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/addons/a11y/src/a11yRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const defaultParameters = { config: {}, options: {} };
* Handle A11yContext events.
* Because the event are sent without manual check, we split calls
*/
const handleRequest = async (storyId: string, input: A11yParameters = defaultParameters) => {
const handleRequest = async (storyId: string, input: A11yParameters | null) => {
if (!input?.manual) {
await run(storyId, input);
await run(storyId, input ?? defaultParameters);
}
};

Expand Down

0 comments on commit fb8b18f

Please sign in to comment.