Feature/search drugs details
2 unresolved threads
2 unresolved threads
Created new component for Drugs details (it will be also used for Chemicals details) and displayed pins for drugs.
Merge request reports
Activity
Filter activity
assigned to @MateuszBolewski
added 3 commits
-
0008a041...130c09ca - 2 commits from branch
development
- ae093e1c - Merge branch 'development' of ssh://gitlab.lcsb.uni.lu:8022/minerva/frontend...
-
0008a041...130c09ca - 2 commits from branch
added 1 commit
- 245af8e9 - feat(search): added test file for AccordionsDetails component
5 5 export const drugsSelector = createSelector(rootSelector, state => state.drugs); 6 6 7 7 export const loadingDrugsStatusSelector = createSelector(drugsSelector, state => state.loading); 8 export const numberOfDrugsSelector = createSelector(drugsSelector, state => 9 state.data ? state.data.length : SIZE_OF_EMPTY_ARRAY, 10 ); 8 export const numberOfDrugsSelector = createSelector(drugsSelector, state => { 9 if (!state.data) { 10 return SIZE_OF_EMPTY_ARRAY; 11 } 12 13 let numberOfDrugs = 0; 10 return name; 11 }; 12 13 export const getEntityDescriptions = (pinsList: PinItem[]): string => { 14 let description = ''; 15 16 pinsList.forEach(element => { 17 if ('description' in element.data) { 18 description += element.data.description; 19 } 20 }); 21 22 return description; 23 }; 24 25 export const getEntitySynonyms = (pinsList: PinItem[]): string => { mentioned in commit e8e61c10
Please register or sign in to reply