mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fix the switch of a new column from Common to Separate settings
Summary: The switching between Common and Separate settings for a field was broken when the field had never modified settings. Test Plan: Added a test case that tickles the issue and tests the fix. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D4072
This commit is contained in:
@@ -502,7 +502,7 @@ export class FieldBuilder extends Disposable {
|
||||
return this.gristDoc.docData.bundleActions(
|
||||
t("Use separate field settings for {{colId}}", { colId: this.origColumn.colId() }), () => {
|
||||
return Promise.all([
|
||||
setSaveValue(this.field.widgetOptions, this.field.column().widgetOptions()),
|
||||
setSaveValue(this.field.widgetOptions, this.field.column().widgetOptions() || "{}"),
|
||||
setSaveValue(this.field.visibleCol, this.field.column().visibleCol()),
|
||||
this.field.saveDisplayFormula(this.field.column()._displayColModel().formula() || '')
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user