mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fix for layout editor when fields are removed
Summary: Fix for layout editor when fields are removed using the creator panel. Layout editor wasn't updated properly when "layoutSpecs" were changed. Test Plan: Updated Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3700
This commit is contained in:
@@ -326,7 +326,7 @@ RecordLayout.prototype.buildLayoutDom = function(row, optCreateEditor) {
|
||||
)
|
||||
);
|
||||
|
||||
const sub = this.layoutSpec.subscribe((spec) => { layout.buildLayout(spec); });
|
||||
const sub = this.layoutSpec.subscribe((spec) => { layout.buildLayout(spec, createEditor); });
|
||||
|
||||
if (createEditor) {
|
||||
this.layoutEditor(RecordLayoutEditor.create(this, layout));
|
||||
|
||||
Reference in New Issue
Block a user