From 4ed93902a614b1f44b41997519bf9daf9fc87098 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 24 May 2024 16:36:18 +0800 Subject: [PATCH] fix: null decoder args (#266) --- frontend/src/utils/decoder_cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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