mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +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 }) => {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user