Commit 4dbfae5a authored by anton's avatar anton

Throw on no socket object in metadata store

parent 4bc0711a
......@@ -25,6 +25,7 @@ const metadata = {
metadata = {}
try {
const result = await new Promise((resolve, reject) => {
if (!this.$router.app.$socket) throw new Error('Metadata: Socket is not available')
this.$router.app.$socket.emit(
'metadata:get',
{ url: payload.body.source.id, token: localStorage.getItem('access_token') },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment