diff --git a/client/src/store/customViews/customViews.actions.js b/client/src/store/customViews/customViews.actions.js index 9b781b837..e952d4c78 100644 --- a/client/src/store/customViews/customViews.actions.js +++ b/client/src/store/customViews/customViews.actions.js @@ -27,7 +27,7 @@ export const fetchView = ({ id }) => { export const fetchResourceViews = ({ resourceSlug }) => { return (dispatch) => new Promise((resolve, reject) => { - ApiService.get('views', { params: { resource_name: resourceSlug } }) + ApiService.get(`views/resource/${resourceSlug}`) .then((response) => { dispatch({ type: t.RESOURCE_VIEWS_SET,