Remove api flag
This commit is contained in:
parent
11b2e40836
commit
e67352d51b
|
@ -82,7 +82,7 @@ const automationActions = store => ({
|
|||
},
|
||||
fetch: async () => {
|
||||
const [automationResponse, definitions] = await Promise.all([
|
||||
API.getAutomations({ enrich: true }),
|
||||
API.getAutomations(),
|
||||
API.getAutomationDefinitions(),
|
||||
])
|
||||
store.update(state => {
|
||||
|
|
|
@ -26,14 +26,9 @@ export const buildAutomationEndpoints = API => ({
|
|||
/**
|
||||
* Gets a list of all automations.
|
||||
*/
|
||||
getAutomations: async ({ enrich }) => {
|
||||
const params = new URLSearchParams()
|
||||
if (enrich) {
|
||||
params.set("enrich", true)
|
||||
}
|
||||
|
||||
getAutomations: async () => {
|
||||
return await API.get({
|
||||
url: `/api/automations?${params.toString()}`,
|
||||
url: "/api/automations",
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue