diegomedina248 commented on a change in pull request #19223:
URL: https://github.com/apache/superset/pull/19223#discussion_r830237783
##########
File path: superset-frontend/src/views/CRUD/utils.tsx
##########
@@ -163,20 +163,17 @@ export const getEditedObjects = (userId: string | number)
=> {
export const getUserOwnedObjects = (
userId: string | number,
resource: string,
-) => {
- const filters = {
- created: [
- {
- col: resource === 'saved_query' ? 'created_by' : 'owners',
- opr: resource === 'saved_query' ? 'rel_o_m' : 'rel_m_m',
- value: `${userId}`,
- },
- ],
- };
- return SupersetClient.get({
- endpoint: `/api/v1/${resource}/?q=${getParams(filters.created)}`,
+ filters = [
Review comment:
make sure to type this `Array<Filters>`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]