File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const Layout = () => {
32
32
// because it has to be under routes
33
33
// in order to use useParams
34
34
let { projectName } = useParams ( ) ;
35
- const [ isSearchOpen , setIsSearchOpen ] = useState ( false ) ;
35
+ const setIsSearchOpen = useState ( false ) ;
36
36
const searchRef = useRef < RegistrySearchRef > ( null ) ;
37
37
38
38
const { data : projectsData } = useLoadProjectsList ( ) ;
@@ -85,7 +85,6 @@ const Layout = () => {
85
85
: [ ] ;
86
86
87
87
const handleSearchOpen = ( ) => {
88
- setIsSearchOpen ( true ) ;
89
88
setTimeout ( ( ) => {
90
89
if ( searchRef . current ) {
91
90
searchRef . current . focusSearchInput ( ) ;
@@ -127,11 +126,11 @@ const Layout = () => {
127
126
128
127
< EuiPageBody >
129
128
< EuiErrorBoundary >
130
- { isSearchOpen && data && (
129
+ { data && (
131
130
< EuiPageHeader
132
131
paddingSize = "l"
133
132
style = { {
134
- position : "sticky" ,
133
+ // position: "sticky",
135
134
top : 0 ,
136
135
zIndex : 100 ,
137
136
borderBottom : "1px solid #D3DAE6" ,
You can’t perform that action at this time.
0 commit comments