diff --git a/src/App.tsx b/src/App.tsx index 3b91039..3c7daee 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -35,6 +35,7 @@ import { NodeApi, Tree } from "react-arborist"; import { BookWithChapters, BooksCRUD } from "./data/repositories/books"; import { ChapterModel, ChaptersCRUD } from "./data/repositories/chapters"; +import { AppLoader } from "./components/AppLoader"; import { CreateOrUpdateModal } from "./components/CreateOrUpdateModal"; import { SettingsModal } from "./components/SettingsModal"; @@ -99,6 +100,10 @@ export function App() { } }, [whisperModel, openSettingsModal, ready]); + if (!ready) { + return ; + } + return ( <>