We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439b89e commit 3447a62Copy full SHA for 3447a62
public/js/icinga/behavior/modal.js
@@ -114,7 +114,7 @@
114
}
115
116
let $autoSubmittedBy;
117
- if (typeof event.detail !== 'undefined' && "submittedBy" in event.detail) {
+ if (event.detail !== null && typeof event.detail === 'object' && "submittedBy" in event.detail) {
118
$autoSubmittedBy = $(event.detail.submittedBy);
119
120
public/js/icinga/events.js
@@ -261,7 +261,11 @@
261
262
263
264
- if (! $autoSubmittedBy && typeof event.detail !== 'undefined' && "submittedBy" in event.detail) {
+ if (! $autoSubmittedBy
265
+ && event.detail !== null
266
+ && typeof event.detail === 'object'
267
+ && "submittedBy" in event.detail
268
+ ) {
269
270
271
0 commit comments