Skip to content

Commit

Permalink
fix name of Vue component (fixes #1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Oct 26, 2023
1 parent 1662411 commit 859f85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def register_vue_component(path: Path) -> Component:
if key in vue_components and vue_components[key].path == path:
return vue_components[key]
assert key not in vue_components, f'Duplicate VUE component {key}'
v = vbuild.VBuild(name, path.read_text())
v = vbuild.VBuild(path.name, path.read_text())
vue_components[key] = VueComponent(key=key, name=name, path=path, html=v.html, script=v.script, style=v.style)
return vue_components[key]
if path.suffix == '.js':
Expand Down

0 comments on commit 859f85f

Please sign in to comment.