Skip to content

Commit

Permalink
fix: remove extra comma
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Jonsson committed May 15, 2024
1 parent 38768fd commit 3f02798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mock/src/faker/getters/combine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3f02798

Please sign in to comment.