mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Display table name instead of table Ids on select column reference (#353)
This commit is contained in:
parent
51d61fc743
commit
619cd91dea
@ -336,9 +336,9 @@ export class FieldBuilder extends Disposable {
|
||||
// Builds the reference type table selector. Built when the column is type reference.
|
||||
public _buildRefTableSelect() {
|
||||
const allTables = Computed.create(null, (use) =>
|
||||
use(this._docModel.visibleTableIds.getObservable()).map(tableId => ({
|
||||
value: tableId,
|
||||
label: tableId,
|
||||
use(this._docModel.visibleTables.getObservable()).map(tableRec => ({
|
||||
value: use(tableRec.tableId),
|
||||
label: use(tableRec.tableNameDef),
|
||||
icon: 'FieldTable' as const
|
||||
}))
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user