Handle null Userfield values in userfieldsform component (fixes #1953)

This commit is contained in:
Bernd Bestel
2022-07-22 16:47:23 +02:00
parent 721a0ce417
commit 5b53175ed6
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ Grocy.Components.UserfieldsForm.Load = function()
}
else if (input.attr("data-userfield-type") == "link")
{
if (!value.isEmpty())
if (value != null && !value.isEmpty())
{
var data = JSON.parse(value);