From 683bdfce240bbe49600a09030592931cfa705850 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 30 Sep 2024 12:37:31 +0000 Subject: [PATCH] FIx for source file --- inventree_wireviz/wireviz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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