Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyielia committed Oct 26, 2023
1 parent be91776 commit aa04766
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vizro-core/src/vizro/_vizro.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ def build(self, dashboard: Dashboard):
Returns:
Vizro: App object
"""
data_manager._cache.init_app(self.dash.server, config=data_manager._cache.config)
data_manager._cache.init_app(self.dash.server)
# Note that model instantiation and pre_build are independent of Dash.
self._pre_build()

self.dash.layout = dashboard.build()
# to clear original data if the cache type is not NullCache
data_manager._clean_original_data()

return self

Expand Down

0 comments on commit aa04766

Please sign in to comment.