Fix saving DisplayPreferences

This commit is contained in:
crobibero 2020-04-19 12:34:34 -06:00
parent c31b9f5169
commit 60607ab60c

View File

@ -84,7 +84,11 @@ namespace Jellyfin.Api.Controllers
return BadRequest(ModelState);
}
displayPreferences.Id = displayPreferencesId;
if (displayPreferencesId == null)
{
// do nothing.
}
_displayPreferencesRepository.SaveDisplayPreferences(
displayPreferences,
userId,