There was an error while loading. Please reload this page.
1 parent f532cf6 commit dcb2642Copy full SHA for dcb2642
1 file changed
client/src/services/suggestion-service.js
@@ -5,7 +5,10 @@ const baseUrl = "/api/suggestions";
5
export const getAll = async (statusIds) => {
6
try {
7
const params = { statusIds, tenantId: TENANT_ID };
8
- const response = await axios.get(baseUrl, { params });
+ const response = await axios.get(baseUrl, {
9
+ params,
10
+ paramsSerializer: { indexes: null }, // This will prevent axios from adding [] to the query parameters
11
+ });
12
return response.data;
13
} catch (err) {
14
throw new Error(err.message);
0 commit comments