mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Fix navigator search
This commit is contained in:
parent
73d0c9bb12
commit
98a2827a4a
@ -235,8 +235,6 @@ export const NavigatorView: FC<{}> = props =>
|
||||
{
|
||||
if(!isVisible || !LAST_SEARCH || !LAST_SEARCH.length) return;
|
||||
|
||||
console.log(LAST_SEARCH)
|
||||
|
||||
CreateLinkEvent(`navigator/search/${ LAST_SEARCH }`);
|
||||
}, [ isVisible ]);
|
||||
|
||||
|
@ -47,6 +47,8 @@ export const NavigatorSearchView: FC<NavigatorSearchViewProps> = props =>
|
||||
|
||||
useEffect(() =>
|
||||
{
|
||||
if(!searchResult || !searchResult.data) return;
|
||||
|
||||
const searchResultDataParts = searchResult.data.split(':');
|
||||
|
||||
LAST_SEARCH = `${ topLevelContext.code }/${ searchResult.data }`;
|
||||
|
Loading…
Reference in New Issue
Block a user