Files
photon-tbw/src/routes/admin/+layout.ts
T
Xylight 76c581123a fix: Fix lint errors (#559)
* cleanup: postactions styling

* misc: fix first round of errors

* pkg: remove vitest

* fix: fix lint errors stage 2

* fix: fix lint errors stage 3

* fix: fix lint errors, stage 3

* misc: update eslint rules to warn for writable derived
2025-06-09 16:34:06 -07:00

16 lines
279 B
TypeScript

import { getClient, site as siteStore } from '$lib/lemmy.svelte.js'
export async function load({ fetch }) {
const site = siteStore
if (!site.data) {
const res = await getClient(undefined, fetch).getSite()
site.data = res
}
return {
site: site.data,
}
}