Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit fc2e69e

Browse files
committed
default value
1 parent 510051b commit fc2e69e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/cdm/FolderModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface ConfigColumn {
5050
task_hide_completed?: boolean;
5151
// Formulas
5252
formula_query?: string;
53-
persist_formula?: boolean;
53+
persist_formula: boolean;
5454
// Relations
5555
related_note_path?: string;
5656
// Rollups

src/helpers/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export const DEFAULT_COLUMN_CONFIG: ConfigColumn = Object.freeze({
121121
isInline: false,
122122
task_hide_completed: true,
123123
footer_type: FooterType.NONE,
124+
persist_formula: false,
124125
});
125126

126127
export const MetadataDatabaseColumns: MetadataColumnsModel = Object.freeze({

src/parsers/handlers/marshall/MarshallColumnsHandler.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ export class MarshallColumnsHandler extends AbstractYamlHandler {
5555
column.config = DEFAULT_COLUMN_CONFIG;
5656
} else {
5757
// General config
58-
const parsedIsInline: boolean = this.parseBoolean(column.config.isInline);
59-
column.config.isInline = parsedIsInline;
58+
column.config = {
59+
...DEFAULT_COLUMN_CONFIG,
60+
...column.config
61+
}
62+
63+
column.config.isInline = this.parseBoolean(column.config.isInline);
6064
column = this.marshallParticularConfigInfo(column);
6165
}
6266
// Update mashaller response

0 commit comments

Comments
 (0)