Sync with Monitoring albums modal not closing after saving

pull/4254/head
Bogdan 1 year ago
parent 74d2b4e0dc
commit 9a4c6a8db8

@ -20,7 +20,7 @@ import AlbumGroupInfo from './AlbumGroupInfo';
import AlbumRowConnector from './AlbumRowConnector';
import styles from './ArtistDetailsSeason.css';
function getAlbumTypeStatistics(albums) {
function getAlbumStatistics(albums) {
let albumCount = 0;
let trackFileCount = 0;
let totalAlbumCount = 0;
@ -195,9 +195,9 @@ class ArtistDetailsSeason extends Component {
totalAlbumCount,
trackFileCount,
monitoredAlbumCount,
sizeOnDisk,
hasMonitoredAlbums
} = getAlbumTypeStatistics(items);
hasMonitoredAlbums,
sizeOnDisk
} = getAlbumStatistics(items);
const {
isOrganizeModalOpen,

@ -19,7 +19,6 @@ namespace Lidarr.Api.V1.AlbumStudio
[HttpPost]
[Consumes("application/json")]
[Produces("application/json")]
public IActionResult UpdateAll([FromBody] AlbumStudioResource resource)
{
var artistToUpdate = _artistService.GetArtists(resource.Artist.Select(s => s.Id));
@ -46,7 +45,7 @@ namespace Lidarr.Api.V1.AlbumStudio
_albumMonitoredService.SetAlbumMonitoredStatus(artist, resource.MonitoringOptions);
}
return Accepted(resource);
return Accepted(new object());
}
}
}

Loading…
Cancel
Save