omnibox: hide tutorial from initial

This commit is contained in:
Liam Fitzgerald 2021-02-26 11:04:04 +10:00
parent a62dd1c752
commit 4964b44601
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -85,7 +85,7 @@ export function Omnibox(props: OmniboxProps) {
const initialResults = useMemo(() => {
return new Map(SEARCHED_CATEGORIES.map((category) => {
if (category === 'other') {
return ['other', index.get('other')];
return ['other', index.get('other').filter(({ app }) => app !== 'tutorial')];
}
return [category, []];
}));
@ -118,6 +118,7 @@ export function Omnibox(props: OmniboxProps) {
if (defaultApps.includes(app.toLowerCase())
|| app === 'profile'
|| app === 'messages'
|| app === 'tutorial'
|| app === 'Links'
|| app === 'Terminal'
|| app === 'home'