mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 23:25:59 +00:00
fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user