diff --git a/frontend/src/Author/Index/Overview/AuthorIndexOverviewInfo.js b/frontend/src/Author/Index/Overview/AuthorIndexOverviewInfo.js
index e3e3125e1..e33508932 100644
--- a/frontend/src/Author/Index/Overview/AuthorIndexOverviewInfo.js
+++ b/frontend/src/Author/Index/Overview/AuthorIndexOverviewInfo.js
@@ -5,6 +5,7 @@ import dimensions from 'Styles/Variables/dimensions';
import formatDateTime from 'Utilities/Date/formatDateTime';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import formatBytes from 'Utilities/Number/formatBytes';
+import translate from 'Utilities/String/translate';
import AuthorIndexOverviewInfoRow from './AuthorIndexOverviewInfoRow';
import styles from './AuthorIndexOverviewInfo.css';
@@ -76,9 +77,9 @@ function getInfoRowProps(row, props) {
};
}
- if (name === 'qualityProfileId') {
+ if (name === 'qualityProfileId' && !!props.qualityProfile?.name) {
return {
- title: 'Quality Profile',
+ title: translate('QualityProfile'),
iconName: icons.PROFILE,
label: props.qualityProfile.name
};
diff --git a/frontend/src/Author/Index/Posters/AuthorIndexPoster.js b/frontend/src/Author/Index/Posters/AuthorIndexPoster.js
index 75bc7e7e1..e16f5cf96 100644
--- a/frontend/src/Author/Index/Posters/AuthorIndexPoster.js
+++ b/frontend/src/Author/Index/Posters/AuthorIndexPoster.js
@@ -235,12 +235,12 @@ class AuthorIndexPoster extends Component {
}
- {
- showQualityProfile &&
-
- {qualityProfile.name}
-
- }
+ {showQualityProfile && !!qualityProfile?.name ? (
+
+ {qualityProfile.name}
+
+ ) : null}
+
{
nextAiring &&
diff --git a/frontend/src/Author/Index/Table/AuthorIndexRow.js b/frontend/src/Author/Index/Table/AuthorIndexRow.js
index 6b13e0331..213e1e783 100644
--- a/frontend/src/Author/Index/Table/AuthorIndexRow.js
+++ b/frontend/src/Author/Index/Table/AuthorIndexRow.js
@@ -209,7 +209,7 @@ class AuthorIndexRow extends Component {
key={name}
className={styles[name]}
>
- {qualityProfile.name}
+ {qualityProfile?.name ?? ''}
);
}
@@ -220,7 +220,7 @@ class AuthorIndexRow extends Component {
key={name}
className={styles[name]}
>
- {metadataProfile.name}
+ {metadataProfile?.name ?? ''}
);
}
diff --git a/frontend/src/Book/Index/Overview/BookIndexOverviewInfo.js b/frontend/src/Book/Index/Overview/BookIndexOverviewInfo.js
index 196cebf40..c6be47fbc 100644
--- a/frontend/src/Book/Index/Overview/BookIndexOverviewInfo.js
+++ b/frontend/src/Book/Index/Overview/BookIndexOverviewInfo.js
@@ -5,6 +5,7 @@ import dimensions from 'Styles/Variables/dimensions';
import formatDateTime from 'Utilities/Date/formatDateTime';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import formatBytes from 'Utilities/Number/formatBytes';
+import translate from 'Utilities/String/translate';
import BookIndexOverviewInfoRow from './BookIndexOverviewInfoRow';
import styles from './BookIndexOverviewInfo.css';
@@ -71,9 +72,9 @@ function getInfoRowProps(row, props) {
};
}
- if (name === 'qualityProfileId') {
+ if (name === 'qualityProfileId' && !!props.qualityProfile?.name) {
return {
- title: 'Quality Profile',
+ title: translate('QualityProfile'),
iconName: icons.PROFILE,
label: props.qualityProfile.name
};
diff --git a/frontend/src/Book/Index/Posters/BookIndexPoster.js b/frontend/src/Book/Index/Posters/BookIndexPoster.js
index 9b9ca4568..cca178dba 100644
--- a/frontend/src/Book/Index/Posters/BookIndexPoster.js
+++ b/frontend/src/Book/Index/Posters/BookIndexPoster.js
@@ -250,12 +250,12 @@ class BookIndexPoster extends Component {
}
- {
- showQualityProfile &&
-
- {qualityProfile.name}
-
- }
+ {showQualityProfile && !!qualityProfile?.name ? (
+
+ {qualityProfile.name}
+
+ ) : null}
+
{
nextAiring &&
diff --git a/frontend/src/Book/Index/Table/BookIndexRow.js b/frontend/src/Book/Index/Table/BookIndexRow.js
index f74446541..d9e0405ce 100644
--- a/frontend/src/Book/Index/Table/BookIndexRow.js
+++ b/frontend/src/Book/Index/Table/BookIndexRow.js
@@ -195,7 +195,7 @@ class BookIndexRow extends Component {
key={name}
className={styles[name]}
>
- {qualityProfile.name}
+ {qualityProfile?.name ?? ''}
);
}