Skip to content

Commit

Permalink
0.9.1010
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-cen committed Oct 29, 2024
1 parent 1d0feb3 commit 3c206c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "make-md",
"name": "MAKE.md",
"version": "0.9.1009",
"version": "0.9.1010",
"minAppVersion": "0.16.0",
"description": "Make.md brings powerful and modern note-taking features to Obsidian. Capture, organize and connect information with more flexibility without any code.",
"author": "MAKE.md",
Expand Down
18 changes: 9 additions & 9 deletions src/core/react/components/PathView/NoteView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ export const NoteView = forwardRef((props: NoteViewProps, ref) => {

const properties: Record<string, any> = props.properties;
const pathState = props.superstate.pathsIndex.get(path.basePath);
const notePath =
pathState?.type == "space"
const filePath =
pathState?.type == "space" && props.forceNote
? props.superstate.spacesIndex.get(props.path)?.space.notePath
: path.fullPath;
const fileExists =
props.forceNote ?? notePath
? await props.superstate.spaceManager.pathExists(notePath)
: false;
if (!notePath || !fileExists) {
: pathState
? path.fullPath
: null;

if (!filePath) {
if (!force) {
setExistsPas(true);
setLoaded(false);
Expand All @@ -50,6 +49,7 @@ export const NoteView = forwardRef((props: NoteViewProps, ref) => {
).folderPath
: props.superstate.spaceManager.parentPathForPath(path.basePath);
if (!parent) return;
console.log(parent, props.path, path, props.path, props.source);
const newPath = await props.superstate.spaceManager.createItemAtPath(
parent,
"md",
Expand All @@ -60,7 +60,7 @@ export const NoteView = forwardRef((props: NoteViewProps, ref) => {
}
} else {
setExistsPas(false);
props.superstate.ui.openPath(notePath, false, div, properties);
props.superstate.ui.openPath(filePath, false, div, properties);
}
// if (path.refStr?.length > 0) {
// const pathPropertiesFromRef ;
Expand Down

0 comments on commit 3c206c6

Please sign in to comment.