From 9def3177f0f51cb32a3a9a0a5e9b2f4614bb53b8 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 29 Sep 2023 12:29:28 +0200 Subject: [PATCH] re-add `String()` wrapper --- docs/shared/DisplayClientError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/shared/DisplayClientError.js b/docs/shared/DisplayClientError.js index 7bae9b65a51..508ab4bc315 100644 --- a/docs/shared/DisplayClientError.js +++ b/docs/shared/DisplayClientError.js @@ -137,7 +137,7 @@ function ErrorDetails({ version, messageId, args }) { const errorMessage = useMemo(() => { return data?.message ? args.reduce( - (/** @type{string} */ acc, arg) => acc.replace(/%[sdfo]/, arg), + (/** @type{string} */ acc, arg) => acc.replace(/%[sdfo]/, String(arg)), String(data.message) ) : null;