DSingh0304 commented on code in PR #3222:
URL: https://github.com/apache/apisix-dashboard/pull/3222#discussion_r2956036812


##########
src/types/schema/pageSearch.ts:
##########
@@ -29,8 +29,23 @@ export const pageSearchSchema = z
       .optional()
       .default(10)
       .transform((val) => (val ? Number(val) : 10)),
+    // Common search filter fields used by routes and other pages.
+    // Keeping these optional preserves backward compatibility while
+    // ensuring URL params are normalized into consistent shapes.
     name: z.string().optional(),
-    label: z.string().optional(),
+    version: z.string().optional(),
+    labels: z
+      .preprocess((val) => {
+        if (val === undefined || val === null) {
+          return undefined;
+        }
+        if (Array.isArray(val)) {
+          return val;
+        }
+        return [val];
+      }, z.array(z.string()).optional())
+      .optional(),
+    status: z.string().optional(),

Review Comment:
   Fixed in 
[a4c3bdb](https://github.com/apache/apisix-dashboard/pull/3222/commits/a4c3bdb18b9354679413849a3994260afd26b8be)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to