This commit is contained in:
zeppi 2021-10-12 15:39:49 -04:00 committed by jessopb
parent ee9f63a161
commit 5088caef1e
4 changed files with 2 additions and 3 deletions

View file

@ -28,7 +28,6 @@ import { selectShowMatureContent } from 'redux/selectors/settings';
import { makeSelectHasVisitedUri } from 'redux/selectors/content'; import { makeSelectHasVisitedUri } from 'redux/selectors/content';
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions'; import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
import { selectModerationBlockList } from 'redux/selectors/comments'; import { selectModerationBlockList } from 'redux/selectors/comments';
import { doFileGet } from 'redux/actions/file';
import ClaimPreview from './view'; import ClaimPreview from './view';
import formatMediaDuration from 'util/formatMediaDuration'; import formatMediaDuration from 'util/formatMediaDuration';

View file

@ -4,6 +4,7 @@ import {
makeSelectClaimIsMine, makeSelectClaimIsMine,
selectMyChannelClaims, selectMyChannelClaims,
selectFetchingMyChannels, selectFetchingMyChannels,
makeSelectTagInClaimOrChannelForUri,
} from 'redux/selectors/claims'; } from 'redux/selectors/claims';
import { doSendTip } from 'redux/actions/wallet'; import { doSendTip } from 'redux/actions/wallet';
import { doCommentCreate, doFetchCreatorSettings, doCommentById } from 'redux/actions/comments'; import { doCommentCreate, doFetchCreatorSettings, doCommentById } from 'redux/actions/comments';

View file

@ -23,7 +23,7 @@ import {
import { import {
doFetchItemsInCollection, doFetchItemsInCollection,
doCollectionDelete, doCollectionDelete,
doCollectionEdit doCollectionEdit,
} from 'redux/actions/collections'; } from 'redux/actions/collections';
import { selectUser } from 'redux/selectors/user'; import { selectUser } from 'redux/selectors/user';

View file

@ -13,7 +13,6 @@ export const buildSharedStateMiddleware = (
) => ({ getState, dispatch }: { getState: () => { user: any, settings: any }, dispatch: (any) => void }) => ( ) => ({ getState, dispatch }: { getState: () => { user: any, settings: any }, dispatch: (any) => void }) => (
next: ({}) => void next: ({}) => void
) => (action: { type: string, data: any }) => { ) => (action: { type: string, data: any }) => {
const currentState = getState();
// We don't care if sync is disabled here, we always want to backup preferences to the wallet // We don't care if sync is disabled here, we always want to backup preferences to the wallet
if (!actions.includes(action.type) || typeof action === 'function') { if (!actions.includes(action.type) || typeof action === 'function') {