fix possible npe
This commit is contained in:
parent
d374f62ae0
commit
5476851d1f
|
@ -985,7 +985,7 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
const val = 'deploy-script'
|
const val = 'deploy-script'
|
||||||
return this.#current.additionalParameters.parameters.map(
|
return this.#current.additionalParameters.parameters.map(
|
||||||
(script, i) => {
|
(script, i) => {
|
||||||
let code = script.value.length ? script.value.join("\r\n") : ""
|
let code = script.value && script.value.length ? script.value.join("\r\n") : ""
|
||||||
return `
|
return `
|
||||||
<textarea rows="5" class="script-area form-control ${script.name === val ? '' : 'd-none'}" name="${script.name}">${code}</textarea>
|
<textarea rows="5" class="script-area form-control ${script.name === val ? '' : 'd-none'}" name="${script.name}">${code}</textarea>
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue