mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
fix
This commit is contained in:
parent
2b9fa9a70f
commit
869e837ee5
@ -105,10 +105,10 @@ export class CollectionGridDisplay extends GridDisplay {
|
|||||||
this.columns = analyseCollectionDisplayColumns([...(loadedRows || []), ...changedDocs, ...insertedDocs], this);
|
this.columns = analyseCollectionDisplayColumns([...(loadedRows || []), ...changedDocs, ...insertedDocs], this);
|
||||||
this.filterable = true;
|
this.filterable = true;
|
||||||
this.sortable = true;
|
this.sortable = true;
|
||||||
this.editable = !readOnly;
|
this.editable = !readOnly && collection?.uniqueKey?.length > 0;
|
||||||
this.supportsReload = true;
|
this.supportsReload = true;
|
||||||
this.isDynamicStructure = true;
|
this.isDynamicStructure = true;
|
||||||
this.changeSetKeyFields = ['_id'];
|
this.changeSetKeyFields = collection?.uniqueKey?.map(x => x.columnName);
|
||||||
this.baseCollection = collection;
|
this.baseCollection = collection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user