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 fc28c74 commit b1ef11eCopy full SHA for b1ef11e
apps/webapp/app/presenters/v3/ApiRunListPresenter.server.ts
@@ -126,7 +126,12 @@ export const ApiRunListSearchParams = z.object({
126
}
127
128
const parsedValues = values.map((v) => MachinePresetName.safeParse(v));
129
- const invalidValues = parsedValues.filter((result) => !result.success);
+ const invalidValues: string[] = [];
130
+ parsedValues.forEach((result, index) => {
131
+ if (!result.success) {
132
+ invalidValues.push(values[index]);
133
+ }
134
+ });
135
if (invalidValues.length > 0) {
136
ctx.addIssue({
137
code: z.ZodIssueCode.custom,
0 commit comments