Creating message and error page to improve error handling

This commit is contained in:
Bruno Alves de Faria committed 2018-02-02 09:22:48 -02:00
1 parent 0a082e21c8
commit fb9d583074
12 files changed
+106 -5

No files matched your search

@@ -101,7 +101,7 @@ Template.studyBrowserItem.helpers({
modalityStyle(modalities) {
// Responsively styles the Modality Acronyms for studies with more than one modality
const numModalities = modalities.split(/\s/g).length;
const numModalities = modalities ? modalities.split(/\s/g).length : 1;
if (numModalities === 1) {
// If we have only one modality, it should take up the whole div