Browse Source

Avoids `as`

main
Eric Amodio 2 years ago
parent
commit
4108066229
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 1
- 2
src/webviews/apps/plus/graph/GraphWrapper.tsx View File

@ -392,8 +392,7 @@ export function GraphWrapper({
}
if (id != null) {
// TODO@eamodio Remove the any once we expose `selectCommits` on the graph component
queueMicrotask(() => void (graphRef.current as any)?.selectCommits([id], false));
queueMicrotask(() => graphRef.current?.selectCommits([id!], false));
}
};

Loading…
Cancel
Save