Commit 4af858f 1 parent 7fdc048 commit 4af858f Copy full SHA for 4af858f
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ export function initCompWebHookEditor() {
23
23
}
24
24
25
25
const updateContentType = function ( ) {
26
- const visible = document . getElementById ( 'http_method' ) . value === 'POST' ;
27
- toggleElem ( document . getElementById ( 'content_type' ) . parentNode . parentNode , visible ) ;
26
+ const visible = document . getElementById ( 'http_method' ) ? .value === 'POST' ;
27
+ toggleElem ( document . getElementById ( 'content_type' ) ? .parentNode . parentNode , visible ) ;
28
28
} ;
29
29
updateContentType ( ) ;
30
30
31
- document . getElementById ( 'http_method' ) . addEventListener ( 'change' , updateContentType ) ;
31
+ document . getElementById ( 'http_method' ) ? .addEventListener ( 'change' , updateContentType ) ;
32
32
33
33
// Test delivery
34
34
document . getElementById ( 'test-delivery' ) ?. addEventListener ( 'click' , async function ( ) {
You can’t perform that action at this time.
0 commit comments