Skip to content

Commit

Permalink
Remove unneeded optional chaining
Browse files Browse the repository at this point in the history
Co-authored-by: Kai Hao <[email protected]>
  • Loading branch information
andrewserong and kevin940726 committed Feb 14, 2023
1 parent 68f7147 commit 0e64fd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function useListViewScrollIntoView( {
selectedClientIds,
rowItemRef,
} ) {
const isSingleSelection = selectedClientIds?.length === 1;
const isSingleSelection = selectedClientIds.length === 1;

useLayoutEffect( () => {
// Skip scrolling into view if this particular block isn't selected,
Expand Down

0 comments on commit 0e64fd1

Please sign in to comment.