mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #12106: Fix exception when saving dashboard widget with minimum width/height
This commit is contained in:
@@ -58,8 +58,8 @@ class DashboardWidget:
|
||||
return self.title or self.__class__.__name__
|
||||
|
||||
def set_layout(self, grid_item):
|
||||
self.width = grid_item['w']
|
||||
self.height = grid_item['h']
|
||||
self.width = grid_item.get('w', 1)
|
||||
self.height = grid_item.get('h', 1)
|
||||
self.x = grid_item.get('x')
|
||||
self.y = grid_item.get('y')
|
||||
|
||||
|
Reference in New Issue
Block a user