diff --git a/inventree_wireviz/wireviz.py b/inventree_wireviz/wireviz.py index fab85bf..9bce586 100644 --- a/inventree_wireviz/wireviz.py +++ b/inventree_wireviz/wireviz.py @@ -238,7 +238,7 @@ def get_ui_panels(self, instance_type, instance_id, request, **kwargs): 'name': 'wireviz', 'label': 'Harness Diagram', 'context': ctx, - 'source': f'/static/plugin/{self.SLUG}/WirevizPanel.js', + 'source': self.plugin_static_file('WirevizPanel.js'), }) return panels