fix: error around latest partition in BigQuery (#11274)

* fix: error around latest partition in BigQuery

* lint

* Going with a backend-first approach

* fix test

* add an extra test
This commit is contained in:
Maxime Beauchemin
2020-10-20 21:34:46 -07:00
committed by GitHub
parent c360413fc2
commit 796a2a6924
5 changed files with 55 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ class TableElement extends React.PureComponent {
/>
);
}
let latest = Object.entries(table.partitions.latest).map(
let latest = Object.entries(table.partitions?.latest || []).map(
([key, value]) => `${key}=${value}`,
);
latest = latest.join('/');