summaryrefslogtreecommitdiff
path: root/app/client/socket
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-20 03:23:11 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-20 03:23:11 +0200
commit270d9ccc3f93f29559dbf9c746070812a63e99e1 (patch)
tree90a168324cd78dc6edecf901440445b2f410ac60 /app/client/socket
parent3c9ccd38751501bbf5b9cd2c54dee370681fdb5b (diff)
fileviewer compoonent
Diffstat (limited to 'app/client/socket')
-rw-r--r--app/client/socket/socket.actions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/socket/socket.actions.js b/app/client/socket/socket.actions.js
index 4bae3b3..31d73cc 100644
--- a/app/client/socket/socket.actions.js
+++ b/app/client/socket/socket.actions.js
@@ -8,7 +8,7 @@ export const count_directory = opt => syscall_async('count_directory', opt).t
export const list_sequences = opt => syscall_async('list_sequences', opt).then(res => res.sequences)
export const run_script = opt => syscall_async('run_script', opt)
export const upload_file = opt => syscall_async('upload_file', opt)
-export const read_file = opt => syscall_async('read_file', opt)
+export const read_file = opt => syscall_async('read_file', opt).then(res => res.file)
export const syscall_async = (tag, payload, ttl=10000) => {
ttl = payload.ttl || ttl