@@ -76,7 +76,7 @@ export function databaseReducer(state:TableDataType, action:ActionType) {
7676 // trim label will get a valid yaml key
7777 const update_col_key :string = action . label . trim ( ) ;
7878 // Update configuration on disk
79- state . diskConfig . updateColumnProperties (
79+ state . view . diskConfig . updateColumnProperties (
8080 action . columnId ,
8181 { label : action . label , accessor : update_col_key , key : update_col_key }
8282 ) ;
@@ -108,7 +108,7 @@ export function databaseReducer(state:TableDataType, action:ActionType) {
108108 column => column . id === action . columnId
109109 ) ;
110110 // Update configuration on disk
111- state . diskConfig . updateColumnProperties ( action . columnId , { input : action . dataType } ) ;
111+ state . view . diskConfig . updateColumnProperties ( action . columnId , { input : action . dataType } ) ;
112112 // Update state
113113 switch ( action . dataType ) {
114114 case DataTypes . NUMBER :
@@ -217,7 +217,7 @@ export function databaseReducer(state:TableDataType, action:ActionType) {
217217 position : leftId
218218 } ;
219219 // Update configuration on disk
220- state . diskConfig . addColumn ( `newColumn${ leftId } ` , newLeftColumn ) ;
220+ state . view . diskConfig . addColumn ( `newColumn${ leftId } ` , newLeftColumn ) ;
221221
222222 Promise . all ( state . data . map ( async ( row :TableRow ) => {
223223 updateRowFile (
@@ -262,7 +262,7 @@ export function databaseReducer(state:TableDataType, action:ActionType) {
262262 label : `new Column ${ rightId } `
263263 } ;
264264 // Update configuration on disk
265- state . diskConfig . addColumn ( rightId , newRIghtColumn ) ;
265+ state . view . diskConfig . addColumn ( rightId , newRIghtColumn ) ;
266266
267267 Promise . all ( state . data . map ( async ( row :TableRow ) => {
268268 updateRowFile (
@@ -294,7 +294,7 @@ export function databaseReducer(state:TableDataType, action:ActionType) {
294294 ( column ) => column . id === action . columnId
295295 ) ;
296296 // Update configuration on disk
297- state . diskConfig . removeColumn ( action . columnId ) ;
297+ state . view . diskConfig . removeColumn ( action . columnId ) ;
298298 Promise . all ( state . data . map ( async ( row :TableRow ) => {
299299 updateRowFile (
300300 row . note . getFile ( ) ,
0 commit comments