mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 18:54:35 +00:00
Handle null
Userfield values in userfieldsform component (fixes #1953)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user