Fix frontend config update

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-07-22 00:13:02 +02:00
parent 2136ea1257
commit 58bf77dff6
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ const GlobalHotkeys: React.FC<IGlobalHotkeys> = ({ children, node }) => {
const element = node.current.querySelector('input#search') as HTMLInputElement;
if (element) {
if (element?.checkVisibility()) {
element.focus();
} else {
history.push('/search');