Skip to content

Commit c32ca56

Browse files
committed
fixed bug causing 'dash_html_components.' to be imported instead of dash_html_components
1 parent 5647abe commit c32ca56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dash/dash.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,10 @@ def _collect_and_register_resources(self, resources):
618618
# add the version number of the package as a query parameter
619619
# for cache busting
620620
def _relative_url_path(relative_package_path="", namespace=""):
621-
if any(x in relative_package_path for x in ["dcc", "html", "dash_table"]):
621+
if any(
622+
relative_package_path.startswith(x)
623+
for x in ["dcc", "html", "dash_table"]
624+
):
622625
relative_package_path = relative_package_path.replace("dash.", "")
623626
version = importlib.import_module(
624627
"{}.{}".format(namespace, os.path.split(relative_package_path)[0])

0 commit comments

Comments
 (0)