style: apply fmt

This commit is contained in:
Julien Oculi 2024-01-23 14:43:47 +01:00
parent 910ae2ba2e
commit 314073ffc8
2 changed files with 2 additions and 3 deletions

View file

@ -12,8 +12,8 @@ import { siteDb } from './site_db_manual.ts'
export function App() {
return (
<main>
<h1>Live example</h1>
<DbGraph db={siteDb} />
<h1>Live example</h1>
<DbGraph db={siteDb} />
</main>
)
}

View file

@ -22,7 +22,6 @@ export function DbGraph({ db }: { db: DbEntry[] }) {
* @param graph - Container html reference.
*/
function drawDb({ db, graph }: { db: DbEntry[]; graph: Ref<HTMLDivElement> }) {
//Convert db entries to "vis-network" nodes
const nodes = db.map(({ id, title, links }) => ({
id,