fix: listing custom views endpoint API in frontend.

This commit is contained in:
Ahmed Bouhuolia
2020-10-17 15:04:07 +02:00
parent 27ec0e91fa
commit ebcd1d12f3

View File

@@ -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,