Skip to content

Commit

Permalink
Merge branch '442-fr-edit-nested-metadata'
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Oct 6, 2022
2 parents a08f251 + e1cf5bc commit 344bd2a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.7.1
- Hotfix for 2.7.0 of global settings developer options
- Experimental support for Objects on text fields
## 2.7.0
### Shiny new things
- 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)
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.7.0",
"version": "2.7.1",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.7.0",
"version": "2.7.1",
"minAppVersion": "0.15.9",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dbfolder",
"version": "2.7.0",
"version": "2.7.1",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
14 changes: 11 additions & 3 deletions src/components/cellTypes/TextCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,20 @@ function parseStringToTextRow(
newValue: string
): Literal {
const cellRoot = row[columnId];
if (typeof cellRoot === "object") {
if (
typeof cellRoot === "object" ||
(newValue.startsWith("{") && newValue.endsWith("}"))
) {
// TODO control anidated values in function of columnId spliting by "."
return JSON.parse(newValue);
try {
newValue = JSON.parse(newValue);
} catch (e) {
// Just return the original value
}
} else {
return newValue.trim();
newValue = newValue.trim();
}
return newValue;
}

export default TextCell;

0 comments on commit 344bd2a

Please sign in to comment.