This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 4040 "jest" : " 27.5.1" ,
4141 "jest-mock-extended" : " 2.0.6" ,
4242 "obsidian" : " 0.14.6" ,
43- "obsidian-dataview" : " 0.5.20" ,
44- "rollup" : " 2.72.0" ,
43+ "rollup" : " 2.73.0" ,
4544 "rollup-plugin-typescript2" : " 0.31.2" ,
4645 "ts-jest" : " 27.1.4" ,
4746 "tslib" : " 2.4.0" ,
5554 "immutability-helper" : " 3.1.1" ,
5655 "monkey-around" : " 2.3.0" ,
5756 "pkg.json" : " 2.0.8" ,
57+ "obsidian-dataview" : " 0.5.20" ,
5858 "react" : " 17.0.2" ,
5959 "react-beautiful-dnd" : " 13.1.0" ,
6060 "react-contenteditable" : " 3.3.6" ,
Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ export default function DefaultCell(cellProperties: Cell) {
109109 setContextValue ( ( old ) => ( { value : old . value , update : true } ) )
110110 }
111111 className = { "data-input" }
112- innerRef = { containerCellRef }
113112 />
114113 ) ;
115114 /** Number option */
Original file line number Diff line number Diff line change @@ -78,15 +78,8 @@ class DataviewProxy {
7878 : Number . parseInt ( literal as string ) ;
7979 break ;
8080 default :
81- // TODO Values of dataview fails when Obsidian is loaded
82- switch ( typeof literal ) {
83- case 'object' :
84- if ( DateTime . isDateTime ( literal ) && typeof literal . toFormat === 'function' ) {
85- parsedLiteral = literal . toFormat ( "yyyy-MM-dd" ) ;
86- } else {
87- parsedLiteral = literal . toString ( ) ;
88- }
89- }
81+ // Values of dataview parse to md friendly strings
82+ parsedLiteral = this . getDataviewAPI ( ) . value . toString ( literal ) ;
9083 }
9184 return parsedLiteral ;
9285 }
You can’t perform that action at this time.
0 commit comments