Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 344bd2a

Browse files
committed
Merge branch '442-fr-edit-nested-metadata'
2 parents a08f251 + e1cf5bc commit 344bd2a

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

docs/docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.7.1
2+
- Hotfix for 2.7.0 of global settings developer options
3+
- Experimental support for Objects on text fields
14
## 2.7.0
25
### Shiny new things
36
- Group filters are now available. You can now filter per condition (AND/OR) This is a huhe improvement for the user experience. Those groups could be enabled/disabled easily [ISSUE#268](https://github.com/RafaelGB/obsidian-db-folder/issues/268)

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.7.0",
4+
"version": "2.7.1",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.7.0",
4+
"version": "2.7.1",
55
"minAppVersion": "0.15.9",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/components/cellTypes/TextCell.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,20 @@ function parseStringToTextRow(
9999
newValue: string
100100
): Literal {
101101
const cellRoot = row[columnId];
102-
if (typeof cellRoot === "object") {
102+
if (
103+
typeof cellRoot === "object" ||
104+
(newValue.startsWith("{") && newValue.endsWith("}"))
105+
) {
103106
// TODO control anidated values in function of columnId spliting by "."
104-
return JSON.parse(newValue);
107+
try {
108+
newValue = JSON.parse(newValue);
109+
} catch (e) {
110+
// Just return the original value
111+
}
105112
} else {
106-
return newValue.trim();
113+
newValue = newValue.trim();
107114
}
115+
return newValue;
108116
}
109117

110118
export default TextCell;

0 commit comments

Comments
 (0)