From e3fb0aa2223243d01d76e3358f12023452db6466 Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Thu, 23 Jul 2020 16:02:58 -0600 Subject: [PATCH] Replace getManifestBehaviors with getSequenceBehaviors --- src/containers/CollectionDialog.js | 4 ++-- src/containers/ManifestListItem.js | 4 ++-- src/state/sagas/app.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/containers/CollectionDialog.js b/src/containers/CollectionDialog.js index bcb5ccf9e..2e46cb164 100644 --- a/src/containers/CollectionDialog.js +++ b/src/containers/CollectionDialog.js @@ -4,7 +4,7 @@ import { withStyles } from '@material-ui/core'; import { withTranslation } from 'react-i18next'; import { withPlugins } from '../extend/withPlugins'; import * as actions from '../state/actions'; -import { getManifest, getManifestoInstance, getManifestBehaviors } from '../state/selectors'; +import { getManifest, getManifestoInstance, getSequenceBehaviors } from '../state/selectors'; import { CollectionDialog } from '../components/CollectionDialog'; /** @@ -36,7 +36,7 @@ const mapStateToProps = (state) => { collection: collection && getManifestoInstance(state, { manifestId: collection.id }), collectionPath, error: manifest && manifest.error, - isMultipart: getManifestBehaviors(state, { manifestId }).includes('multi-part'), + isMultipart: getSequenceBehaviors(state, { manifestId }).includes('multi-part'), manifest: manifest && getManifestoInstance(state, { manifestId }), manifestId, open: state.workspace.collectionDialogOn, diff --git a/src/containers/ManifestListItem.js b/src/containers/ManifestListItem.js index 2f21dbfa0..20f2db58a 100644 --- a/src/containers/ManifestListItem.js +++ b/src/containers/ManifestListItem.js @@ -7,7 +7,7 @@ import { getManifest, getManifestTitle, getManifestThumbnail, getCanvases, getManifestLogo, getManifestProvider, getWindowManifests, - getManifestoInstance, getManifestBehaviors, + getManifestoInstance, getSequenceBehaviors, } from '../state/selectors'; import * as actions from '../state/actions'; import { ManifestListItem } from '../components/ManifestListItem'; @@ -29,7 +29,7 @@ const mapStateToProps = (state, { manifestId, provider }) => { isCollection, isFetching: manifest.isFetching, isMultipart: isCollection - && getManifestBehaviors(state, { manifestId }).includes('multi-part'), + && getSequenceBehaviors(state, { manifestId }).includes('multi-part'), manifestLogo: getManifestLogo(state, { manifestId }), provider: provider || getManifestProvider(state, { manifestId }), diff --git a/src/state/sagas/app.js b/src/state/sagas/app.js index e943333a8..83a2c4076 100644 --- a/src/state/sagas/app.js +++ b/src/state/sagas/app.js @@ -43,7 +43,7 @@ export function* importConfig({ config: { thumbnailNavigation, windows } }) { /** */ export function* fetchCollectionManifests(action) { - const { collectionPath, manifestId } = action.payload; + const { collectionPath, manifestId } = action; yield call(fetchManifests, manifestId, ...collectionPath); } -- GitLab