Skip to content

Commit

Permalink
remove optional chaining to align with chromaui#52
Browse files Browse the repository at this point in the history
  • Loading branch information
chase committed Mar 8, 2023
1 parent cc64326 commit db247f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withPseudoState.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const withPseudoState = (StoryFn, { viewMode, parameters, id, globals: gl
}, [globals, parameter, viewMode])

selectorLimit =
typeof parameter?.[SELECTOR_LIMIT_PARAMETER] === "number"
parameter && typeof parameter[SELECTOR_LIMIT_PARAMETER] === "number"
? parameter[SELECTOR_LIMIT_PARAMETER]
: undefined

Expand Down

0 comments on commit db247f3

Please sign in to comment.