From c4a067751ab0d69b2dd6fccce86ac47ee36777bd Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 15 Aug 2019 22:27:55 -0400 Subject: [PATCH] Fixed: Artist Type can be null/blank --- frontend/src/Artist/Details/ArtistDetails.js | 2 +- frontend/src/Artist/Editor/ArtistEditorRow.js | 2 +- frontend/src/Artist/Index/Table/ArtistStatusCell.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Artist/Details/ArtistDetails.js b/frontend/src/Artist/Details/ArtistDetails.js index 797c1581b..699eb3f21 100644 --- a/frontend/src/Artist/Details/ArtistDetails.js +++ b/frontend/src/Artist/Details/ArtistDetails.js @@ -680,7 +680,7 @@ ArtistDetails.propTypes = { statistics: PropTypes.object.isRequired, qualityProfileId: PropTypes.number.isRequired, monitored: PropTypes.bool.isRequired, - artistType: PropTypes.string.isRequired, + artistType: PropTypes.string, albumTypes: PropTypes.arrayOf(PropTypes.string), status: PropTypes.string.isRequired, overview: PropTypes.string.isRequired, diff --git a/frontend/src/Artist/Editor/ArtistEditorRow.js b/frontend/src/Artist/Editor/ArtistEditorRow.js index 633ef5c82..cfead73be 100644 --- a/frontend/src/Artist/Editor/ArtistEditorRow.js +++ b/frontend/src/Artist/Editor/ArtistEditorRow.js @@ -101,7 +101,7 @@ ArtistEditorRow.propTypes = { status: PropTypes.string.isRequired, foreignArtistId: PropTypes.string.isRequired, artistName: PropTypes.string.isRequired, - artistType: PropTypes.string.isRequired, + artistType: PropTypes.string, monitored: PropTypes.bool.isRequired, metadataProfile: PropTypes.object.isRequired, qualityProfile: PropTypes.object.isRequired, diff --git a/frontend/src/Artist/Index/Table/ArtistStatusCell.js b/frontend/src/Artist/Index/Table/ArtistStatusCell.js index 1039d63b1..26fde0e12 100644 --- a/frontend/src/Artist/Index/Table/ArtistStatusCell.js +++ b/frontend/src/Artist/Index/Table/ArtistStatusCell.js @@ -39,7 +39,7 @@ function ArtistStatusCell(props) { ArtistStatusCell.propTypes = { className: PropTypes.string.isRequired, - artistType: PropTypes.string.isRequired, + artistType: PropTypes.string, monitored: PropTypes.bool.isRequired, status: PropTypes.string.isRequired, component: PropTypes.elementType