From b611b0da3332ed7cdf0514edd99092da06abf9b2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 22 Jul 2024 18:12:12 +0100 Subject: [PATCH] Fixing JS generation ordering. --- packages/string-templates/src/conversion/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/string-templates/src/conversion/index.ts b/packages/string-templates/src/conversion/index.ts index 7eb5ea71af..25700951c9 100644 --- a/packages/string-templates/src/conversion/index.ts +++ b/packages/string-templates/src/conversion/index.ts @@ -58,7 +58,7 @@ function buildList(parts: string[], value: any) { if (!value) { return parts.length > 1 ? `${build()}` : build() } else { - return parts.length === 0 ? value : `${value}, ${build()}` + return parts.length === 0 ? value : `${build()}, ${value}` } }