Skip to content

Commit

Permalink
Change getValue (Gviz testing) to Optional Chaining.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 560842741
  • Loading branch information
zzzaries authored and copybara-github committed Aug 28, 2023
1 parent c0a752e commit 7b68b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/common/constants/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class DataTableForTesting {
columnIdx >= numofCols) {
return null;
}
return this.data!.rows![rowIdx].c![columnIdx].v;
return this.data.rows![rowIdx].c![columnIdx]?.v;
}
getTableProperty(propName: string): string {
if (!this.data || !this.data.p) {
Expand Down

0 comments on commit 7b68b94

Please sign in to comment.