summaryrefslogtreecommitdiff
path: root/frontend/app/views/graph/graph.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/views/graph/graph.actions.js')
-rw-r--r--frontend/app/views/graph/graph.actions.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/app/views/graph/graph.actions.js b/frontend/app/views/graph/graph.actions.js
index 4185386..6d5cb51 100644
--- a/frontend/app/views/graph/graph.actions.js
+++ b/frontend/app/views/graph/graph.actions.js
@@ -41,10 +41,11 @@ export const setHomePageId = (graph, page) => dispatch => {
actions.graph.update(updated_graph)
}
-export const viewPage = (graph, page) => dispatch => {
+export const viewPage = (graph, path) => dispatch => {
+ // for some reason page.show.res is not always set..??
api(dispatch, types.api, 'export', `/api/v1/graph/export/${graph.path}`)
.then(result => {
console.log(result)
- window.open(`${process.env.EXPORT_HOST}/${graph.path}/${page.path}`)
+ window.open(`${process.env.EXPORT_HOST}${path}`)
})
}