From 5717054418caccda6511a1c29ff93e246d91616f Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Wed, 9 Oct 2024 10:26:52 +0200 Subject: [PATCH] feat: TEMP drive app icon --- .../ResultMenu/getIconForSearchResult.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/assistant/ResultMenu/getIconForSearchResult.js b/src/assistant/ResultMenu/getIconForSearchResult.js index 4f09882c7c..396c5257cd 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' }