Skip to content
4 changes: 2 additions & 2 deletions reflex/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ def __call__(self) -> ASGIApp:
if not self._api:
raise ValueError("The app has not been initialized.")
if self._cached_fastapi_app is not None:
asgi_app = self._cached_fastapi_app
asgi_app.mount("", self._api)
asgi_app = self._api
asgi_app.mount("", self._cached_fastapi_app)
App._add_cors(asgi_app)
else:
asgi_app = self._api
Expand Down
Loading