Sfoglia il codice sorgente

Fix saving DisplayPreferences

crobibero 5 anni fa
parent
commit
60607ab60c

+ 5 - 1
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,