mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
parent
a779a5fad2
commit
81ac73299a
@ -88,8 +88,7 @@ function DeleteSeriesModalContent(props: DeleteSeriesModalContentProps) {
|
|||||||
|
|
||||||
const { totalEpisodeFileCount, totalSizeOnDisk } = useMemo(() => {
|
const { totalEpisodeFileCount, totalSizeOnDisk } = useMemo(() => {
|
||||||
return series.reduce(
|
return series.reduce(
|
||||||
(acc, s) => {
|
(acc, { statistics = {} }) => {
|
||||||
const { statistics = { episodeFileCount: 0, sizeOnDisk: 0 } } = s;
|
|
||||||
const { episodeFileCount = 0, sizeOnDisk = 0 } = statistics;
|
const { episodeFileCount = 0, sizeOnDisk = 0 } = statistics;
|
||||||
|
|
||||||
acc.totalEpisodeFileCount += episodeFileCount;
|
acc.totalEpisodeFileCount += episodeFileCount;
|
||||||
@ -155,17 +154,17 @@ function DeleteSeriesModalContent(props: DeleteSeriesModalContentProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{series.map((s) => {
|
{series.map(({ title, path, statistics = {} }) => {
|
||||||
const { episodeFileCount = 0, sizeOnDisk = 0 } = s.statistics;
|
const { episodeFileCount = 0, sizeOnDisk = 0 } = statistics;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li key={s.title}>
|
<li key={title}>
|
||||||
<span>{s.title}</span>
|
<span>{title}</span>
|
||||||
|
|
||||||
{deleteFiles && (
|
{deleteFiles && (
|
||||||
<span>
|
<span>
|
||||||
<span className={styles.pathContainer}>
|
<span className={styles.pathContainer}>
|
||||||
-<span className={styles.path}>{s.path}</span>
|
-<span className={styles.path}>{path}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{!!episodeFileCount && (
|
{!!episodeFileCount && (
|
||||||
|
Loading…
Reference in New Issue
Block a user