Skip to content

Commit

Permalink
update libraries loading functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
sharon-odhiambo committed Oct 29, 2023
1 parent 6e4b93c commit 4a3d859
Showing 1 changed file with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,29 @@ const TrainingLibraries = () => {
dispatch(searchTrainingLibraries(search));
setShowSearchResults(true);
};
if (!libraries) {
if (Features.wikiEd) {
return (
<div>
<p
dangerouslySetInnerHTML={{
if (libraries.lenghth === 0) {
if (libraries === null) {
return null;
}
if (Features.wikiEd) {
return (
<div>
<p
dangerouslySetInnerHTML={{
__html: I18n.t('training.no_training_library_records_wiki_ed_mode', {
url: '/reload_trainings?module=all',
}),
}}
/>
</div>
);
}
return (
<div>
{I18n.t('training.no_training_library_records_non_wiki_ed_mode')}
</div>
);
/>
</div>
);
}
return (
<div>
{I18n.t('training.no_training_library_records_non_wiki_ed_mode')}
</div>
);
}

return (
<div>
Expand Down

0 comments on commit 4a3d859

Please sign in to comment.