We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e45f4 commit 9d8cd36Copy full SHA for 9d8cd36
apps/webapp/app/presenters/v3/ApiRunListPresenter.server.ts
@@ -123,7 +123,12 @@ export const ApiRunListSearchParams = z.object({
123
}
124
125
const parsedValues = values.map((v) => MachinePresetName.safeParse(v));
126
- const invalidValues = parsedValues.filter((result) => !result.success);
+ const invalidValues: string[] = [];
127
+ parsedValues.forEach((result, index) => {
128
+ if (!result.success) {
129
+ invalidValues.push(values[index]);
130
+ }
131
+ });
132
if (invalidValues.length > 0) {
133
ctx.addIssue({
134
code: z.ZodIssueCode.custom,
0 commit comments