Skip to content

Commit

Permalink
Fix saving UI settings without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed Oct 16, 2024
1 parent 5ef4f51 commit 12611ab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,11 @@
"../api/ui" + (isUpdate ? "/" + newid : ""),
{
id: newid,
configuration: isUpdate ? $scope.uiConfiguration.configuration : null
configuration: isUpdate
? typeof $scope.uiConfiguration.configuration === "string"
? $scope.uiConfiguration.configuration
: JSON.stringify($scope.uiConfiguration.configuration, null, 2)
: null
},
{ responseType: "text" }
)
Expand Down

0 comments on commit 12611ab

Please sign in to comment.