Skip to content

Commit dcb2642

Browse files
authored
Fix bug where Suggestions Admin screen had no results (#2679)
1 parent f532cf6 commit dcb2642

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/src/services/suggestion-service.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const baseUrl = "/api/suggestions";
55
export const getAll = async (statusIds) => {
66
try {
77
const params = { statusIds, tenantId: TENANT_ID };
8-
const response = await axios.get(baseUrl, { params });
8+
const response = await axios.get(baseUrl, {
9+
params,
10+
paramsSerializer: { indexes: null }, // This will prevent axios from adding [] to the query parameters
11+
});
912
return response.data;
1013
} catch (err) {
1114
throw new Error(err.message);

0 commit comments

Comments
 (0)