File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export const PageNotFound = () => {
77 const navigate = useNavigate ( )
88
99 function goBack ( ) {
10- navigate ( - 1 )
10+ navigate ( '/' )
1111 }
1212
1313 return < div className = "d-flex align-items-center justify-content-center vh-100" >
@@ -24,7 +24,7 @@ export const PageNotFound = () => {
2424 < p className = "tdb__page__not__found__text" >
2525 The page you’re looking for doesn’t exist.
2626 </ p >
27- < Button className = "btn btn-info w-100" onClick = { goBack } > BACK </ Button >
27+ < Button className = "btn btn-info w-100" onClick = { goBack } > Go Home </ Button >
2828 </ div >
2929 </ div >
3030}
Original file line number Diff line number Diff line change @@ -245,8 +245,10 @@ export const AdvancedSearch = (props) =>{
245245 setTree ( immutableTree )
246246 }
247247
248+ // we added form or the document interface will refresh if we click enter
248249 return < div >
249- < form >
250+ < form onSubmit = { ( event ) => { event . stopPropagation ( )
251+ event . preventDefault ( ) } } >
250252 < Query
251253 { ...config }
252254 value = { tree }
You can’t perform that action at this time.
0 commit comments