Skip to content

Commit

Permalink
fixes for constraint field display
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Apr 5, 2024
1 parent 9a56925 commit e77cfb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/app/services/catalog.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export class CatalogService {
private initWebsocket(id: string, websocket: WebSocket) {
websocket.onMessage().subscribe({
next: (snapshot: LogicalSnapshotModel) => {
this.updateSnapshot(snapshot);
if (snapshot) {
this.updateSnapshot(snapshot);
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h5>Constraints</h5>
<tr>
<td>{{ constraint.name }}</td>
<th>{{ constraint.type }}</th>
<td *ngFor="let d2 of getColumnsOfKey(constraint)()">{{ d2 }}</td>
<td>{{ getColumnsOfKey(constraint)() }}</td>
<td class="delete">
@if (constraint.type !== ConstraintType.PRIMARY) {
<app-delete-confirm (delete)="dropConstraint(constraint.id)"></app-delete-confirm>
Expand Down
2 changes: 0 additions & 2 deletions src/app/views/table-view/table-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ export class TableViewComponent extends DataTemplateComponent implements OnInit,
ngOnInit() {
super.ngOnInit();

//this._sidebar.setSchema(this._router, '/views/data-table/', true, 2, false);
const sub = this.webSocket.reconnecting.subscribe(
b => {
if (b) {
//this._sidebar.setSchema(this._router, '/views/data-table/', true, 2, false);
this.getEntityData();
}
}
Expand Down

0 comments on commit e77cfb4

Please sign in to comment.