mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix: listing custom views endpoint API in frontend.
This commit is contained in:
@@ -27,7 +27,7 @@ export const fetchView = ({ id }) => {
|
|||||||
|
|
||||||
export const fetchResourceViews = ({ resourceSlug }) => {
|
export const fetchResourceViews = ({ resourceSlug }) => {
|
||||||
return (dispatch) => new Promise((resolve, reject) => {
|
return (dispatch) => new Promise((resolve, reject) => {
|
||||||
ApiService.get('views', { params: { resource_name: resourceSlug } })
|
ApiService.get(`views/resource/${resourceSlug}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: t.RESOURCE_VIEWS_SET,
|
type: t.RESOURCE_VIEWS_SET,
|
||||||
|
|||||||
Reference in New Issue
Block a user