From b589ce96eae8831be7fbe8a74460c44040cb4f42 Mon Sep 17 00:00:00 2001 From: Cyril Auburtin Date: Tue, 14 Feb 2023 11:51:49 +0100 Subject: [PATCH] Fix 0 values not shown --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 809c952..6025efc 100644 --- a/src/utils.js +++ b/src/utils.js @@ -25,5 +25,5 @@ export function encodeQueryString(data) { export function replaceVars(text, vars = {}) { if (typeof text !== 'string') return text; - return text.replace(/{{([\w.-]+)}}/g, (_, key) => vars[key] || ''); + return text.replace(/{{([\w.-]+)}}/g, (_, key) => vars[key] ?? ''); };