Commit b53eb0fe authored by Matija Obreza's avatar Matija Obreza

Fix: return Promise value

parent dd502cc5
......@@ -119,6 +119,7 @@ export const loadSubset = (uuid: string) => (dispatch) => {
return SubsetService.get(uuid)
.then((subset) => {
dispatch(receiveSubset(subset));
return subset;
}).catch((error) => {
console.log(`API error`, error);
dispatch(receiveSubset(null, error));
......
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