mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: fetch settings on home page mount so tools are visible
The old home page called fetchSettings() on mount. The rewrite dropped that call, so the settings store never loaded and visibleTools was always empty (0 tools shown).
This commit is contained in:
@@ -51,11 +51,16 @@ export function HomePage() {
|
||||
const { t } = useTranslation();
|
||||
const [activeTab, setActiveTab] = useState<string>("all");
|
||||
const [search, setSearch] = useState("");
|
||||
const { disabledTools, experimentalEnabled, loaded } = useSettingsStore();
|
||||
const { fetch: fetchSettings, disabledTools, experimentalEnabled, loaded } =
|
||||
useSettingsStore();
|
||||
const recentToolIds = useRecentTools();
|
||||
|
||||
usePageTitle();
|
||||
|
||||
useEffect(() => {
|
||||
fetchSettings();
|
||||
}, [fetchSettings]);
|
||||
|
||||
// ── Tab definitions ──────────────────────────────────────────
|
||||
|
||||
const tabs: TabDef[] = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user