mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Fixes for converting pieceFetcher into store
This commit is contained in:
parent
7a53d539a6
commit
03490b8c63
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import requests from '../utils/requests';
|
import requests from '../utils/requests';
|
||||||
|
|
||||||
import PieceActions from '../actions/edition_actions';
|
import PieceActions from '../actions/piece_actions';
|
||||||
|
|
||||||
|
|
||||||
const PieceSource = {
|
const PieceSource = {
|
||||||
|
@ -34,7 +34,7 @@ class PieceStore {
|
|||||||
onFetchPiece(idToFetch) {
|
onFetchPiece(idToFetch) {
|
||||||
this.pieceMeta.idToFetch = idToFetch;
|
this.pieceMeta.idToFetch = idToFetch;
|
||||||
|
|
||||||
this.getInstance.lookupPiece();
|
this.getInstance().lookupPiece();
|
||||||
}
|
}
|
||||||
|
|
||||||
onSuccessFetchPiece({ piece }) {
|
onSuccessFetchPiece({ piece }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user