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

Commit 9c54145

Browse files
committed
fixed formula options
1 parent 9c38b50 commit 9c54145

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/stateManagement/columns/handlers/AlterOptionToColumnAction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ export default class AlterOptionToColumnHandlerAction extends AbstractTableActio
1111
column: TableColumn,
1212
option: ColumnOption
1313
) => {
14-
if (OptionSource.FORMULA === column.config.formula_option_source) {
14+
if (OptionSource.FORMULA === column.config.option_source) {
1515
// End the execution if the option is from a formula
1616
return;
1717
}
18-
1918
const { value } = option;
2019
// Wrap in a promise of a queue to avoid concurrency issues
2120
const columnIndex = get().columns.findIndex(

src/views/DatabaseView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class DatabaseView extends CustomView {
4747
// Automatically update formula options
4848
this.columns.forEach(async (column) => {
4949
const { config } = column;
50-
if (config.formula_option_source === OptionSource.FORMULA) {
50+
if (config.option_source === OptionSource.FORMULA) {
5151
LOGGER.info(`Updating options for column ${column.id}`);
5252
const updatedOptions = FormulaService.evalOptionsWith(
5353
column,

0 commit comments

Comments
 (0)