Skip to content

Commit

Permalink
Decrease template node match fuzziness (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite authored Oct 13, 2024
1 parent 13a768d commit 4b5ef5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/electron/main/code/diff/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createHashedTemplateToCodeDiff(
}

export function hashTemplateNode(node: TemplateNode): string {
return `${node.path}:${node.startTag.start.line}:${node.startTag.start.column}:${node.startTag.end.line}:${node.startTag.end.column}`;
return `${node.path}:${node.startTag.start.line}:${node.startTag.start.column}`;
}

export function addKeyToElement(element: t.JSXElement): void {
Expand Down

0 comments on commit 4b5ef5e

Please sign in to comment.