From ebcd1d12f37b7b6933c9246517e6ecb2ed549016 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 17 Oct 2020 15:04:07 +0200 Subject: [PATCH] fix: listing custom views endpoint API in frontend. --- client/src/store/customViews/customViews.actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,