mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
allow widget name to be empty string in update
This commit is contained in:
parent
56f05e97f7
commit
96572c35b1
1 changed files with 1 additions and 5 deletions
|
@ -103,11 +103,7 @@ func (r *addWidgetRequest) createWidget() Widget {
|
|||
func (r *updateWidgetRequest) updatedWidget(oldWidget Widget) Widget {
|
||||
// Use the old Widget as a basis for the updated Widget `s`
|
||||
s := oldWidget
|
||||
|
||||
if r.Widget.Name != "" {
|
||||
s.Name = r.Widget.Name
|
||||
}
|
||||
|
||||
s.Name = r.Widget.Name
|
||||
s.Type = r.Widget.Type
|
||||
s.Width = r.Widget.Width
|
||||
s.Height = r.Widget.Height
|
||||
|
|
Loading…
Add table
Reference in a new issue