Skip to content

Commit 41cb981

Browse files
committed
Merge remote-tracking branch 'origin/master' into 195-mdata-matchers
# Conflicts: # src/main.ts
2 parents e43a246 + f6f1d9b commit 41cb981

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "custom-sort",
33
"name": "Custom File Explorer sorting",
4-
"version": "3.1.2",
4+
"version": "3.1.3",
55
"minAppVersion": "1.7.2",
66
"description": "Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer",
77
"author": "SebastianMC",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-custom-sort",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "Custom Sort plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,10 @@ export default class CustomSortPlugin
707707
workspaceLeafContentElementParentToObserve = document.querySelector(".workspace");
708708
}
709709
if (workspaceLeafContentElementParentToObserve) {
710+
// Syntax sugar to satisfy the strict TypeScript compiler
711+
const fileExplorerParentElement = workspaceLeafContentElementParentToObserve
710712
const fullyFledgedFileExplorerElementSelector=
711-
() => workspaceLeafContentElementParentToObserve.querySelector('[data-type="file-explorer"] .nav-files-container');
713+
() => fileExplorerParentElement.querySelector('[data-type="file-explorer"] .nav-files-container');
712714

713715
const mutationObserver = new MutationObserver((_, observerInstance) => {
714716
const fullyFledgedFileExplorerElement = fullyFledgedFileExplorerElementSelector();

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
"3.0.1": "1.7.2",
5454
"3.1.0": "1.7.2",
5555
"3.1.1": "1.7.2",
56-
"3.1.2": "1.7.2"
56+
"3.1.2": "1.7.2",
57+
"3.1.3": "1.7.2"
5758
}

0 commit comments

Comments
 (0)