Merge pull request #7 from n8k99/claude/claude-md-mhy85sj7tlvzwb5w-01QzBpdgGJXE5Qk3JaNupuxM

fix(obsidian): pass string elementId instead of number to editObsidia…
This commit is contained in:
Nathan Eckenrode 2025-11-13 23:12:43 -05:00 committed by GitHub
commit 9367662fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -492,7 +492,7 @@ function editBurg(id) {
// Use Obsidian integration if available, otherwise fall back to old notes system
if (typeof editObsidianNote !== "undefined") {
const coordinates = {x: burg.x, y: burg.y};
editObsidianNote(id, "burg", coordinates);
editObsidianNote("burg" + id, "burg", coordinates);
} else {
const name = elSelected.text();
editNotes("burg" + id, name);

View file

@ -225,7 +225,7 @@ function editMarker(markerI) {
// Use Obsidian integration if available, otherwise fall back to old notes system
if (typeof editObsidianNote !== "undefined" && marker) {
const coordinates = {x: marker.x, y: marker.y};
editObsidianNote(marker.i, "marker", coordinates);
editObsidianNote(id, "marker", coordinates);
} else {
editNotes(id, id);
}