defensive javascript (#3210)
This commit is contained in:
@@ -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 === '') {
|
||||
|
||||
2
public/build/app.120bbf21.js
Normal file
2
public/build/app.120bbf21.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
"app": {
|
||||
"js": [
|
||||
"build/runtime.b8e7bb04.js",
|
||||
"build/app.7d469ea7.js"
|
||||
"build/app.120bbf21.js"
|
||||
],
|
||||
"css": [
|
||||
"build/app.7beab68a.css"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user