style: apply fmt
This commit is contained in:
parent
910ae2ba2e
commit
314073ffc8
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue