Skip to content

Commit

Permalink
0.9.998
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-cen committed Aug 6, 2024
1 parent 9693294 commit 5fc0d69
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 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.997",
"version": "0.9.998",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ const treeForRoot = (
return tree;
}
const children = superstate.getSpaceItems(space.path) ?? [];

children.sort(spaceSortFn(spaceSort)).forEach((item) => {
const _parentId = space.path;
if (item.type != "space") {
Expand Down
3 changes: 1 addition & 2 deletions src/core/superstate/superstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ public api: API;
const items = [...this.spacesMap.getInverse(spacePath)]
const ranks = this.contextsIndex.get(spacePath)?.paths ?? [];


return items.map<PathStateWithRank>((f, i) => {

const pathCache = this.pathsIndex.get(f);
Expand All @@ -343,7 +342,7 @@ public api: API;
private async initializeContexts() {

await this.indexer.reload<Map<string, {cache: ContextState, changed: boolean}>>({ type: 'contexts', path: ''}).then(async r => {
const promises = [...r.entries()].map(([path, {cache, changed}]) => this.contextReloaded(path, cache, changed));
const promises = [...r.entries()].map(([path, {cache, changed}]) => this.contextReloaded(path, cache, changed, true));
await Promise.all(promises);
});

Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/contexts/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const saveContext = async (
): Promise<void> => {
await manager.saveTable(spaceInfo.path, newTable, force).then(f => {
if (f)
return manager.superstate.reloadContextByPath(spaceInfo.path)
return manager.superstate.reloadContextByPath(spaceInfo.path, true)
return f});
};

Expand Down
1 change: 0 additions & 1 deletion src/core/utils/dnd/dropPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const dropPathInTree = async (superstate: Superstate, path: string, activ
const newSpace = projected.depth == 0 && !projected.insert ? null : clonedItems.find(({ id }) => id === parentId)?.item.path;

const newRank = parentId == null ? activeSpaces.findIndex(f => f?.path == overItem.id) : parentId == overItem.id ? -1 : overItem.rank ?? -1;

if (!active) {

dropPathInSpaceAtIndex(superstate, path, null, newSpace, projected.sortable && newRank, modifier);
Expand Down

0 comments on commit 5fc0d69

Please sign in to comment.