mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Fix SVG rendering with unspecified width
This commit is contained in:
parent
05d16b0682
commit
443172197b
@ -54,7 +54,7 @@ class PathEndpointMixin(object):
|
|||||||
# Render SVG
|
# Render SVG
|
||||||
try:
|
try:
|
||||||
width = min(int(request.GET.get('width')), 1600)
|
width = min(int(request.GET.get('width')), 1600)
|
||||||
except ValueError:
|
except (ValueError, TypeError):
|
||||||
width = None
|
width = None
|
||||||
drawing = obj.get_trace_svg(
|
drawing = obj.get_trace_svg(
|
||||||
base_url=request.build_absolute_uri('/'),
|
base_url=request.build_absolute_uri('/'),
|
||||||
|
Loading…
Reference in New Issue
Block a user