Skip to content

Commit

Permalink
auto format code
Browse files Browse the repository at this point in the history
  • Loading branch information
cibernox authored and github-actions[bot] committed Oct 4, 2024
1 parent 6cf83f4 commit fafb53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/svelte/stores/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function isAstElement(maybeNode: AstNode): maybeNode is AstElement {

export function findAstElement(ast: AstNode[], id: string): AstElement {
if (id === "root") return get(rootAstElement)
if (!id) return null;
if (!id) return null
let indexes = id.split(".").map((s) => parseInt(s, 10))
let node: AstNode = ast[indexes[0]] as AstElement
ast = node.content
Expand Down

0 comments on commit fafb53b

Please sign in to comment.