diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a37e8e8c..2a0fca6ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.0.1] (2018-12-06) + +### Fixed + +* fix issue with pagination when selecting referenced document +* show 404 message when accessing collection that doesn't exist + ## [2.0.0] (2018-12-05) First public release. diff --git a/frontend/views/DocumentListView/DocumentListView.jsx b/frontend/views/DocumentListView/DocumentListView.jsx index 33da34b23..74d8ae315 100644 --- a/frontend/views/DocumentListView/DocumentListView.jsx +++ b/frontend/views/DocumentListView/DocumentListView.jsx @@ -164,9 +164,9 @@ class DocumentListView extends Component { const { search = {} } = state.router - const visibleFields = Object.keys( + const visibleFields = currentCollection && Object.keys( getVisibleFields({ - fields: currentCollection && currentCollection.fields, + fields: currentCollection.fields, viewType: 'list' }) ).concat(Constants.DEFAULT_FIELDS) diff --git a/frontend/views/ReferenceSelectView/ReferenceSelectView.jsx b/frontend/views/ReferenceSelectView/ReferenceSelectView.jsx index 436352905..a1cc43795 100644 --- a/frontend/views/ReferenceSelectView/ReferenceSelectView.jsx +++ b/frontend/views/ReferenceSelectView/ReferenceSelectView.jsx @@ -269,6 +269,7 @@ class ReferenceSelectView extends Component { onBuildBaseUrl.call(this, { + createNew: !Boolean(documentId), page, referenceFieldSelect: referencedField })} diff --git a/package.json b/package.json index 8612330f2..b1660371e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dadi/publish", - "version": "2.0.0", + "version": "2.0.1", "description": "DADI Publish", "main": "index.js", "scripts": {