mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-04-16 18:18:00 +00:00
defensive javascript (#3210)
This commit is contained in:
parent
4b069edd33
commit
d6b59f6799
6 changed files with 5 additions and 5 deletions
assets/js/plugins
public/build
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue