mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
Fix search
This commit is contained in:
parent
fbf5bd851f
commit
bdfcdb12b2
@ -530,7 +530,7 @@ input UserInput {
|
||||
}
|
||||
|
||||
type UsersPermissionsMe {
|
||||
_id: ID!
|
||||
id: ID!
|
||||
username: String!
|
||||
email: String!
|
||||
confirmed: Boolean
|
||||
@ -539,7 +539,7 @@ type UsersPermissionsMe {
|
||||
}
|
||||
|
||||
type UsersPermissionsMeRole {
|
||||
_id: ID!
|
||||
id: ID!
|
||||
name: String!
|
||||
description: String
|
||||
type: String
|
||||
|
||||
@ -33,11 +33,12 @@ export function* getData({ uid, params }) {
|
||||
const key =
|
||||
curr.filter === '=' ? curr.name : `${curr.name}${curr.filter}`;
|
||||
acc.push(`${key}=${curr.value}`);
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
|
||||
acc.push(filters.join('&'));
|
||||
if (filters.length > 0) {
|
||||
acc.push(filters.join('&'));
|
||||
}
|
||||
}
|
||||
|
||||
return acc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user