From 3f027984816c75c8e351805f0536dfd44097897c Mon Sep 17 00:00:00 2001 From: Alfred Jonsson Date: Wed, 15 May 2024 15:50:34 +0200 Subject: [PATCH] fix: remove extra comma --- packages/mock/src/faker/getters/combine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mock/src/faker/getters/combine.ts b/packages/mock/src/faker/getters/combine.ts index 9ab230a1e..0838ceb30 100644 --- a/packages/mock/src/faker/getters/combine.ts +++ b/packages/mock/src/faker/getters/combine.ts @@ -113,9 +113,9 @@ export const combineSchemasMock = ({ } if (itemResolvedValue?.value && separator !== 'oneOf' && isLastElement) { - currentValue = `${currentValue}${ - itemResolvedValue?.value ? `,${itemResolvedValue.value}` : '' - }`; + currentValue = `${currentValue ? `${currentValue},` : ''} + ${itemResolvedValue.value} + `; } const isObjectBounds =