Skip to content

Commit 046de16

Browse files
author
Peter Bengtsson
authored
fix TypeScript violation with Overlay in @primer/components@32.1.0 (#23358)
Part of #1311
1 parent bb7e9eb commit 046de16

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/Search.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ function ShowSearchResults({
436436
onClickOutside={() => closeSearch()}
437437
aria-labelledby="title"
438438
sx={
439-
isHeaderSearch && {
439+
(isHeaderSearch && {
440440
background: 'none',
441441
boxShadow: 'none',
442442
position: 'static',
@@ -445,7 +445,8 @@ function ShowSearchResults({
445445
maxWidth: '96%',
446446
margin: '1.5em 2em 0 0.5em',
447447
scrollbarWidth: 'none',
448-
}
448+
}) ||
449+
{}
449450
}
450451
>
451452
{ActionListResults}

0 commit comments

Comments
 (0)