File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ export class InputField extends MarkdownRenderChild {
9494 }
9595
9696 getInitialValue ( ) {
97+ // console.log(this);
9798 if ( this . isBound ) {
9899 return this . metaData [ this . boundMetadataField ] ;
99100 }
100101 }
101102
102103 onload ( ) {
103- console . log ( 'load' , this ) ;
104+ // console.log('load', this);
104105
105106 const container = this . containerEl . createDiv ( ) ;
106107 container . addClass ( 'meta-bind-plugin-input-wrapper' ) ;
@@ -139,7 +140,7 @@ export class InputField extends MarkdownRenderChild {
139140 onunload ( ) {
140141 super . onunload ( ) ;
141142
142- console . log ( 'unload' , this ) ;
143+ // console.log('unload', this);
143144 clearInterval ( this . limitInterval ) ;
144145 }
145146}
Original file line number Diff line number Diff line change @@ -86,14 +86,14 @@ export default class MetaBindPlugin extends Plugin {
8686 let metadata : any ;
8787 try {
8888 metadata = this . app . metadataCache . getFileCache ( file ) . frontmatter ;
89- metadata = JSON . parse ( JSON . stringify ( metadata ) ) ; // deep copy
90- // console.log(metadata);
9189 } catch ( e ) {
9290 new Notice ( 'Waring: ' + e . toString ( ) ) ;
91+ console . warn ( e . toString ( ) ) ;
9392 return ;
9493 }
9594
9695 if ( metadata ) {
96+ metadata = JSON . parse ( JSON . stringify ( metadata ) ) ; // deep copy
9797 delete metadata . position ;
9898 } else {
9999 metadata = { } ;
You can’t perform that action at this time.
0 commit comments