0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-04-16 18:18:00 +00:00

defensive javascript ()

This commit is contained in:
Kevin Papst 2022-03-20 21:08:59 +01:00 committed by GitHub
parent 4b069edd33
commit d6b59f6799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 5 deletions

View file

@ -176,7 +176,7 @@ export default class KimaiFormSelect extends KimaiPlugin {
let emptyOpts = [];
let options = [];
let titlePattern = null;
if (select[0].dataset['optionPattern'] !== undefined) {
if (select[0] !== undefined && select[0].dataset !== undefined && select[0].dataset['optionPattern'] !== undefined) {
titlePattern = select[0].dataset['optionPattern'];
}
if (titlePattern === null || titlePattern === '') {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,7 @@
"app": {
"js": [
"build/runtime.b8e7bb04.js",
"build/app.7d469ea7.js"
"build/app.120bbf21.js"
],
"css": [
"build/app.7beab68a.css"

View file

@ -1,6 +1,6 @@
{
"build/app.css": "build/app.7beab68a.css",
"build/app.js": "build/app.7d469ea7.js",
"build/app.js": "build/app.120bbf21.js",
"build/invoice.css": "build/invoice.ccdecd42.css",
"build/invoice.js": "build/invoice.19f36eca.js",
"build/invoice-pdf.css": "build/invoice-pdf.e73a6dda.css",