diff --git a/frontend/src/utils/decoder_cmd.js b/frontend/src/utils/decoder_cmd.js index e4d33f3..b0f013c 100644 --- a/frontend/src/utils/decoder_cmd.js +++ b/frontend/src/utils/decoder_cmd.js @@ -13,7 +13,7 @@ export const joinCommand = (path, args = [], emptyContent = '-') => { if (!isEmpty(path)) { let containValuePlaceholder = false cmd = includes(path, ' ') ? `"${path}"` : path - for (let part of args) { + for (let part of args || []) { part = trim(part) if (isEmpty(part)) { continue