Skip to content

Commit

Permalink
fix: fixes issue preventing map view from opening
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jul 3, 2023
1 parent 1ae41b5 commit 3b2ecee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Leaflet integration for Obsidian.md",
"main": "main.js",
"scripts": {
"dev": "node ./esbuild.config.mjs",
"dev": "export NODE_ENV=development && npm run build",
"build": "webpack",
"dev-es": "node ./esbuild.config.mjs",
"build-es": "node ./esbuild.config.mjs production"
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ export default class ObsidianLeaflet extends Plugin {
}

public async getLocalFileMarkers(file: TFile, markerFileName = "markers.json"): Promise<MarkerIcon[]> {
if (!file) return [];
const markerFilePath = `${file.parent.path}/${markerFileName}`;
const markerFile = this.app.vault.getAbstractFileByPath(markerFilePath);
const markers: MarkerIcon[] = [];
Expand Down

0 comments on commit 3b2ecee

Please sign in to comment.