File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ from importlib import import_module
34from importlib .metadata import version
45from typing import TYPE_CHECKING
56
67from flask_caching import Cache
78
8- from crystal_toolkit .core .mpcomponent import MPComponent
99from crystal_toolkit .settings import SETTINGS
1010
1111if TYPE_CHECKING :
@@ -92,6 +92,7 @@ def crystal_toolkit_layout(self, layout) -> html.Div:
9292 layout = layout ()
9393
9494 stores_to_add = []
95+ MPComponent = import_module ("crystal_toolkit.core.mpcomponent.MPComponent" )
9596 for basename in MPComponent ._all_id_basenames :
9697 # can use "if basename in layout_str:" to restrict to components present in initial layout
9798 # this would cause bugs for components displayed dynamically
You can’t perform that action at this time.
0 commit comments