Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Sep 30, 2024
1 parent ab6ce77 commit deb0645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/local_view/elements/map_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class MapNode extends Node {
access.dataContainer
);
if (nodes) {
const node = nodes.values().next().value[1];
const node = nodes.values()?.next()?.value[1];

Check failure on line 368 in src/local_view/elements/map_node.ts

View workflow job for this annotation

GitHub Actions / build (20.17.0)

Object is possibly 'undefined'.

Check failure on line 368 in src/local_view/elements/map_node.ts

View workflow job for this annotation

GitHub Actions / build (22.7.0)

Object is possibly 'undefined'.

if (node && !access.index.includes(undefined)) {
const cl = node.getCacheLine(access.index as number[]);
Expand Down
2 changes: 1 addition & 1 deletion src/local_view/elements/memory_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class MemoryTile extends Graphics {
const nodeRet =
this.memoryNode.parentGraph.memoryNodesMap.get(key);
if (nodeRet !== undefined && nodeRet.size) {
const node = nodeRet.values().next().value[1];
const node = nodeRet.values()?.next()?.value[1];

Check failure on line 162 in src/local_view/elements/memory_node.ts

View workflow job for this annotation

GitHub Actions / build (20.17.0)

Object is possibly 'undefined'.

Check failure on line 162 in src/local_view/elements/memory_node.ts

View workflow job for this annotation

GitHub Actions / build (22.7.0)

Object is possibly 'undefined'.

val.forEach(v => {
node.applyToIdx(
Expand Down
2 changes: 1 addition & 1 deletion src/local_view/graph/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class Graph extends Graphics {
public contractGraph(): void {
const contractionRegions = this.findContractionRegions();
for (const region of contractionRegions) {
const regionId = region.values().next().value.id;
const regionId = region.values()?.next()?.value.id;

Check failure on line 90 in src/local_view/graph/graph.ts

View workflow job for this annotation

GitHub Actions / build (20.17.0)

Object is possibly 'undefined'.

Check failure on line 90 in src/local_view/graph/graph.ts

View workflow job for this annotation

GitHub Actions / build (22.7.0)

Object is possibly 'undefined'.
const regionInEdges = new Set<Edge>();
const regionOutEdges = new Set<Edge>();
const removedContainers = new Set<DataContainer>();
Expand Down

0 comments on commit deb0645

Please sign in to comment.