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;