From 745cb85f9561f6dc04a26db57fa5fc62893698e6 Mon Sep 17 00:00:00 2001 From: Martin Sefcik Date: Mon, 30 Oct 2023 23:43:44 +0100 Subject: [PATCH] fix (#680): fixed defined non-string variables to be displayed correctly in code editor --- packages/bruno-app/src/utils/common/codemirror.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/common/codemirror.js b/packages/bruno-app/src/utils/common/codemirror.js index 78016de6..6074dbdc 100644 --- a/packages/bruno-app/src/utils/common/codemirror.js +++ b/packages/bruno-app/src/utils/common/codemirror.js @@ -10,7 +10,7 @@ if (!SERVER_RENDERED) { const pathFoundInVariables = (path, obj) => { const value = get(obj, path); - return isString(value); + return value !== undefined; }; export const defineCodeMirrorBrunoVariablesMode = (variables, mode) => {