diff --git a/src/containers/CollectionDialog.js b/src/containers/CollectionDialog.js index bcb5ccf9e5dece1bc83d58f9670768fc9d211f18..2e46cb164ad22e8eddf3bc71dca4026675591a92 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 2f21dbfa0a21ee0ed98b24d80eadae90f5eb5eef..20f2db58ae2132e4a32386d35d1b4a7dfc610318 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 e943333a8545e45491646b7f0da6c9ca6a9a5a30..83a2c407696335ceb736469b5f1eb6a0fe8af72b 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); }