From 1b2f8b8eb727ff4a27f123c80377d9a041e798aa Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 2 Apr 2024 11:06:24 -0400 Subject: [PATCH] Update client/src/components/Markdown/parse.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David López <46503462+davelopez@users.noreply.github.com> --- client/src/components/Markdown/parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Markdown/parse.ts b/client/src/components/Markdown/parse.ts index 2991846bede4..f7d5b17cd562 100644 --- a/client/src/components/Markdown/parse.ts +++ b/client/src/components/Markdown/parse.ts @@ -138,7 +138,7 @@ export function getArgs(content: string): GalaxyDirectiveSection { const arguments_str = function_arguments[i]?.toString().replace(/,/g, "").trim(); if (arguments_str) { const [keyStr, valStr] = arguments_str.split("="); - if (keyStr == undefined || keyStr == undefined) { + if (keyStr == undefined || valStr == undefined) { throw Error("Failed to parse galaxy directive"); } const key = keyStr.trim();