summaryrefslogtreecommitdiff
path: root/frontend/app/views/graph/graph.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-24 12:27:47 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-24 12:28:21 +0100
commita6793f922991d326eeb33cf08b245863218eaef7 (patch)
treecddce890107a6bf29f283147b54acd0a71393768 /frontend/app/views/graph/graph.actions.js
parentb5435cf3a892efdef3efe0a137076b3408556434 (diff)
fix open page weirdness in a hacky way
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}`)
})
}