File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " Leaflet integration for Obsidian.md" ,
5
5
"main" : " main.js" ,
6
6
"scripts" : {
7
- "dev" : " node ./esbuild.config.mjs " ,
7
+ "dev" : " export NODE_ENV=development && npm run build " ,
8
8
"build" : " webpack" ,
9
9
"dev-es" : " node ./esbuild.config.mjs" ,
10
10
"build-es" : " node ./esbuild.config.mjs production"
Original file line number Diff line number Diff line change @@ -665,6 +665,7 @@ export default class ObsidianLeaflet extends Plugin {
665
665
}
666
666
667
667
public async getLocalFileMarkers ( file : TFile , markerFileName = "markers.json" ) : Promise < MarkerIcon [ ] > {
668
+ if ( ! file ) return [ ] ;
668
669
const markerFilePath = `${ file . parent . path } /${ markerFileName } ` ;
669
670
const markerFile = this . app . vault . getAbstractFileByPath ( markerFilePath ) ;
670
671
const markers : MarkerIcon [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments