@@ -90,7 +90,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
9090 ...rowRecord . inline ,
9191 ...metadata ,
9292 id : state . view . rows . length + 1 ,
93- note : new NoteInfo (
93+ __note__ : new NoteInfo (
9494 {
9595 ...rowRecord . frontmatter ,
9696 ...rowRecord . inline ,
@@ -121,7 +121,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
121121 Promise . all (
122122 state . view . rows . map ( async ( row : RowDataType ) => {
123123 await updateRowFileProxy (
124- row . note . getFile ( ) ,
124+ row . __note__ . getFile ( ) ,
125125 action . columnId ,
126126 action . newKey ,
127127 state ,
@@ -361,7 +361,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
361361 Promise . all (
362362 state . view . rows . map ( async ( row : RowDataType ) => {
363363 updateRowFileProxy (
364- row . note . getFile ( ) ,
364+ row . __note__ . getFile ( ) ,
365365 action . key ,
366366 undefined , // delete does not need this field
367367 state ,
@@ -412,7 +412,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
412412 ? `${ state . view . file . parent . path } /${ action . value } /${ action . file . name } `
413413 : `${ state . view . file . parent . path } /${ action . file . name } ` ;
414414
415- action . row . original . note = new NoteInfo (
415+ action . row . original . __note__ = new NoteInfo (
416416 {
417417 ...action . row ,
418418 file : {
@@ -433,7 +433,7 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
433433 [ action . row . index ] : {
434434 $merge : {
435435 [ MetadataColumns . FILE ] : action . row [ MetadataColumns . FILE ] ,
436- note : action . row . original . note ,
436+ note : action . row . original . __note__ ,
437437 [ update_option_cell_column_key ] : action . value ,
438438 } ,
439439 } ,
0 commit comments