added clearing of error to assetDisplay
This commit is contained in:
parent
7a8466ef68
commit
960893e775
2 changed files with 1 additions and 16 deletions
|
@ -48,13 +48,6 @@ export function addRequestToRequestList (id, error, key) {
|
|||
|
||||
// asset actions
|
||||
|
||||
// export function addRequestToAssetRequests (id, error, name, claimId) {
|
||||
// return {
|
||||
// type: actions.ASSET_REQUEST_ADD,
|
||||
// data: { id, error, name, claimId },
|
||||
// };
|
||||
// };
|
||||
|
||||
export function addAssetToAssetList (id, error, name, claimId, shortId, claimData) {
|
||||
return {
|
||||
type: actions.ASSET_ADD,
|
||||
|
@ -64,13 +57,6 @@ export function addAssetToAssetList (id, error, name, claimId, shortId, claimDat
|
|||
|
||||
// channel actions
|
||||
|
||||
// export function addRequestToChannelRequests (id, error, name, longId, shortId) {
|
||||
// return {
|
||||
// type: actions.CHANNEL_REQUEST_ADD,
|
||||
// data: { id, error, name, longId, shortId },
|
||||
// };
|
||||
// };
|
||||
|
||||
export function addNewChannelToChannelList (id, name, shortId, longId, claimsData) {
|
||||
return {
|
||||
type: actions.CHANNEL_ADD,
|
||||
|
@ -78,8 +64,6 @@ export function addNewChannelToChannelList (id, name, shortId, longId, claimsDat
|
|||
};
|
||||
};
|
||||
|
||||
// update channel data
|
||||
|
||||
export function onUpdateChannelClaims (channelKey, name, longId, page) {
|
||||
return {
|
||||
type: actions.CHANNEL_CLAIMS_UPDATE_ASYNC,
|
||||
|
|
|
@ -15,6 +15,7 @@ function* retrieveFile (action) {
|
|||
return yield put(updateDisplayAssetError(error.message));
|
||||
};
|
||||
if (isAvailable) {
|
||||
yield put(updateDisplayAssetError(null));
|
||||
return yield put(updateFileAvailability(AVAILABLE));
|
||||
}
|
||||
yield put(updateFileAvailability(UNAVAILABLE));
|
||||
|
|
Loading…
Reference in a new issue