prepare release 1.6 (#1270)

This commit is contained in:
Kevin Papst
2019-11-24 00:02:43 +01:00
committed by GitHub
parent 817a43b178
commit 936ab05882
15 changed files with 36 additions and 14 deletions

View File

@@ -60,9 +60,9 @@ export default class KimaiSelectDataAPI extends KimaiPlugin {
_updateSelect(selectName, data) {
const options = {};
for (const apiData of data) {
let title = apiData.parentTitle;
if (title === null) {
title = '__empty__';
let title = '__empty__';
if (apiData.hasOwnProperty('parentTitle')) {
title = apiData.parentTitle;
}
if (!options.hasOwnProperty(title)) {
options[title] = [];