fix(API/index.ts): encode comma in tags array to prevent issues with URL encoding

This commit is contained in:
anovazzi1 2023-11-13 14:07:19 -03:00
commit f11d578efa

View file

@ -610,7 +610,7 @@ export async function getStoreComponents(
queryParams.push(`status=${status}`);
}
if (tags !== undefined && tags !== null && tags.length > 0) {
queryParams.push(`tags=${tags.join(",")}`);
queryParams.push(`tags=${tags.join(encodeURIComponent(","))}`);
}
if (sort !== undefined && sort !== null) {