mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-3326 outdate alias (#1639)
This commit is contained in:
@@ -35,6 +35,15 @@ export class DBObjectResource extends CachedMapResource<string, DBObject> {
|
||||
// this.preloadResource(this.navNodeInfoResource);
|
||||
this.navNodeInfoResource.outdateResource(this);
|
||||
this.navNodeInfoResource.deleteInResource(this);
|
||||
|
||||
this.navTreeResource.onDataUpdate.addHandler(key => {
|
||||
ResourceKeyUtils.forEach(key, nodeId => {
|
||||
if (!isResourceAlias(nodeId)) {
|
||||
this.markOutdated(DBObjectParentKey(nodeId));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
this.beforeLoad.addHandler(async (originalKey, context) => {
|
||||
await this.navTreeResource.waitLoad();
|
||||
if (this.isAlias(originalKey, DBObjectParentKey)) {
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ export const Table = observer<Props>(function Table({
|
||||
.sort((a, b) => (b.object?.properties?.length || 0) - (a.object?.properties?.length || 0));
|
||||
|
||||
const nodeIds = objects.map(object => object.id);
|
||||
const properties = baseObject[0].object?.properties ?? [];
|
||||
const properties = baseObject[0]?.object?.properties ?? [];
|
||||
const measuredCells = getMeasuredCells(properties, objects);
|
||||
|
||||
const dataColumns: IDataColumn[] = properties.map((property, index) => ({
|
||||
|
||||
Reference in New Issue
Block a user