diff --git a/src/assistant/ResultMenu/getIconForSearchResult.js b/src/assistant/ResultMenu/getIconForSearchResult.js index 4f09882c7..396c5257c 100644 --- a/src/assistant/ResultMenu/getIconForSearchResult.js +++ b/src/assistant/ResultMenu/getIconForSearchResult.js @@ -22,6 +22,14 @@ import EncryptedFolderIcon from './EncryptedFolderIcon' // import IconEncryptedFolder from 'modules/views/Folder/EncryptedFolderIcon' export const getIconForSearchResult = (searchResult) => { + if (searchResult.doc.type === 'io.cozy.apps') { + console.log('APP', searchResult) + return { + type: 'app', + app: searchResult.doc + } + } + console.log('getIconForSearchResult', searchResult) if (searchResult.type === 'notes') { return { @@ -48,14 +56,6 @@ export const getIconForSearchResult = (searchResult) => { } } - if (searchResult.doc.type === 'io.cozy.apps') { - console.log('APP', searchResult) - return { - type: 'app', - app: searchResult.doc - } - } - return { type: 'unknown' }