Skip to content

Commit

Permalink
Fix #208
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Jul 2, 2023
1 parent 93ef857 commit 3282048
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-zotero-desktop-connector",
"name": "Zotero Integration",
"version": "2.3.10",
"version": "2.3.11",
"minAppVersion": "1.1.1",
"description": "Insert and import citations, bibliographies, notes, and PDF annotations from Zotero.",
"author": "mgmeyers",
Expand Down
12 changes: 9 additions & 3 deletions src/DataExplorerView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { ItemView, TFile, WorkspaceLeaf, moment } from 'obsidian';
import {
ItemView,
TFile,
WorkspaceLeaf,
moment,
normalizePath,
} from 'obsidian';
import React from 'react';
import ReactDOM from 'react-dom';
import { JSONTree } from 'react-json-tree';
Expand Down Expand Up @@ -124,8 +130,8 @@ function TemplatePreview({
templateData
);

const markdownPath = sanitizeFilePath(
removeStartingSlash(renderedPath)
const markdownPath = normalizePath(
sanitizeFilePath(removeStartingSlash(renderedPath))
);

const existingMarkdownFile =
Expand Down

0 comments on commit 3282048

Please sign in to comment.