client/src/constants/index.js
changeset 193 99e342f9fb0c
parent 138 a1fb2ced3049
equal deleted inserted replaced
192:e4c2c1919c20 193:99e342f9fb0c
    18     return defaultAnnotationsCategories;
    18     return defaultAnnotationsCategories;
    19   }
    19   }
    20   return metacategories.map((m) => {
    20   return metacategories.map((m) => {
    21     return {
    21     return {
    22       key: m.id,
    22       key: m.id,
    23       name: m.name,
    23       name: m.name || m.title,
    24       description: m.description,
    24       description: m.description,
    25       color: m.color,
    25       color: m.color,
    26       hasComment: m.has_comment
    26       hasComment: m.has_comment
    27     }
    27     }
    28   })
    28   })