fix(folders): add no folder present messaging in dropdown (#1118)

This commit is contained in:
Yash Joshi 2021-10-18 13:49:40 +05:30 committed by GitHub
parent 5ffcc14d68
commit c31a578978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,7 @@ export const AppMenu = function AppMenu({ app, folders, foldersChanged, deleteAp
onChange={(newVal) => {
addAppToFolder(app.id, newVal);
}}
emptyMessage={folders.length === 0 ? 'No folders present' : 'Not found'}
filterOptions={customFuzzySearch}
placeholder="Select folder"
/>