Skip to content

Commit f041717

Browse files
committed
chore: slice off last slash of same enum data
1 parent c25b21e commit f041717

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/web/src/features/upload/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ function generateSampleData({
308308
for (const val of enumValues!) {
309309
possibleEnumOutputs += val + '/';
310310
}
311+
possibleEnumOutputs = possibleEnumOutputs.slice(0, -1);
311312
return formatTypeInfo(possibleEnumOutputs, isOptional);
312313
} catch {
313314
throw new Error('Invalid Enum error');

0 commit comments

Comments
 (0)