Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tensorboard/plugins/graph/tf_graph_info/tf-node-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ class TfNodeInfo extends LegacyElementMixin(PolymerElement) {
@computed('_node')
get _device(): string {
var node = this._node;
// TODO: go/ts58upgrade - Fix type mismatch caused by improved checking of
// returned conditional operators after upgrade
// TS2322: Type 'null' is not assignable to type 'string'.
// @ts-ignore
return node ? node.device : null;
}
@computed('_node', 'graphHierarchy')
Expand Down Expand Up @@ -675,6 +679,10 @@ class TfNodeInfo extends LegacyElementMixin(PolymerElement) {
@computed('_node')
get _subnodes(): unknown[] {
var node = this._node;
// TODO: go/ts58upgrade - Fix type mismatch caused by improved checking of
// returned conditional operators after upgrade
// TS2322: Type 'null' is not assignable to type 'unknown[]'.
// @ts-ignore
return node && node.metagraph ? node.metagraph.nodes() : null;
}
@computed('_predecessors')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,11 @@ export class AxesCollection {
public getAxisPosition(colIndex: number): number {
return this._draggedAxis !== null &&
this._draggedAxis.colIndex() === colIndex
? this._draggedAxisPosition
? // TODO: go/ts58upgrade - Fix type mismatch caused by improved checking
// of returned conditional operators after upgrade
// TS2322: Type 'number | null' is not assignable to type 'number'.
// @ts-ignore
this._draggedAxisPosition
: this._stationaryAxesPositions(colIndex);
}
/**
Expand Down