mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fixing multicolumn bug on a card view
Summary: Fixing bug on a card view. Type selector was always showing 'mixed type' value. Test Plan: Updated Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3704
This commit is contained in:
@@ -193,7 +193,11 @@ export class RightPanel extends Disposable {
|
||||
|
||||
const selectedColumns = owner.autoDispose(ko.computed(() => {
|
||||
const vsi = this._gristDoc.viewModel.activeSection?.().viewInstance();
|
||||
return vsi && vsi.selectedColumns ? vsi.selectedColumns() : null;
|
||||
if (vsi && vsi.selectedColumns) {
|
||||
return vsi.selectedColumns();
|
||||
}
|
||||
const field = fieldBuilder()?.field;
|
||||
return field ? [field] : [];
|
||||
}));
|
||||
|
||||
const isMultiSelect = owner.autoDispose(ko.pureComputed(() => {
|
||||
|
||||
Reference in New Issue
Block a user