Skip to content

Commit f3a415e

Browse files
committed
mitosheet: fix bug again
1 parent 5031601 commit f3a415e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mitosheet/mitosheet/steps_manager.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ def __init__(
257257
if not is_running_test() and not is_pro() and column_definitions is not None:
258258
raise ValueError("column definitions are only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans")
259259

260-
default_apply_formula_to_column = False if default_editing_mode == 'cell' else True
261-
if not is_running_test() and not is_pro() and default_apply_formula_to_column is not None:
260+
if not is_running_test() and not is_pro() and default_editing_mode is not None:
262261
raise ValueError(f'Setting default_editing_mode is only supported in the enterprise version of Mito. See Mito plans https://www.trymito.io/plans')
263262

264263
# The version of the public interface used by this analysis
@@ -353,7 +352,7 @@ def __init__(
353352
self.code_options: CodeOptions = get_default_code_options(self.analysis_name) if code_options is None else code_options
354353

355354
self.theme = theme
356-
self.default_apply_formula_to_column = default_apply_formula_to_column if default_apply_formula_to_column is not None else True
355+
self.default_apply_formula_to_column = False if default_editing_mode == 'cell' else True
357356

358357
@property
359358
def curr_step(self) -> Step:

0 commit comments

Comments
 (0)