aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DisplayPreferencesController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-04-19 12:34:34 -0600
committercrobibero <cody@robibe.ro>2020-04-19 12:34:34 -0600
commit60607ab60c3051815179859adfd2a7182f9ceb9a (patch)
tree7d8bef0fd34a54057ec645f39d708adadada4175 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs
parentc31b9f5169ae62787fa356ccecc2f1fc6896d04b (diff)
Fix saving DisplayPreferences
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DisplayPreferencesController.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs
index a3bcafaea..2c4072b39 100644
--- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs
+++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs
@@ -84,7 +84,11 @@ namespace Jellyfin.Api.Controllers
return BadRequest(ModelState);
}
- displayPreferences.Id = displayPreferencesId;
+ if (displayPreferencesId == null)
+ {
+ // do nothing.
+ }
+
_displayPreferencesRepository.SaveDisplayPreferences(
displayPreferences,
userId,